Torrent download fails when a colon is in the filename

Feature requests for the Windows version of Transmission
Post Reply
alexlehm
Posts: 2
Joined: Wed Aug 30, 2023 2:19 pm

Torrent download fails when a colon is in the filename

Post by alexlehm »

I have used Transmission to download video files from a Peertube instance which apparently puts the complete video title string into the filename of the torrent file.

This way I ended up with a file called Bandname: Title1 / Title2-1080p.mp4 which couldn't be created in Windows and made the download fail.
I assume the colon is an invalid character and the / may be a problem as well, though this might work if the directory can be created.

I wonder if it would be possible to "sanitize" the filename and replace the invalid Windows characters like : " and so on or to ask for an alternate filename if creation of the file fails. (using transmission-remote.exe)
alexlehm
Posts: 2
Joined: Wed Aug 30, 2023 2:19 pm

Re: Torrent download fails when a colon is in the filename

Post by alexlehm »

Also, if the directory ends with a space, it does not work well with Windows

Bandname: Title1 / Title2-1080p
results in a directory "Bandname: Title1 which confuses Windows, though it is possible to create the dir
mike.dld
Transmission Developer
Posts: 306
Joined: Wed Dec 25, 2013 10:56 pm

Re: Torrent download fails when a colon is in the filename

Post by mike.dld »

Sanitizing is already in place since 3.00, unless it broke in 4.x (I didn't test). Which version are you using?
Post Reply