webtorrent / webtorrent-desktop

❤️ Streaming torrent app for Mac, Windows, and Linux
https://webtorrent.io/desktop
MIT License
9.74k stars 1.01k forks source link

Special Characters in Filenames #1147

Open Edward-Stryfe opened 7 years ago

Edward-Stryfe commented 7 years ago

On the latest version of webtorrent desktop when I try to seed a torrent that has files whose filename contains characters such as an ellipsis or apostrophe the character is replaced with a question mark character making it impossible to seed the original file without having to rename it and make another torrent altogether. I don't get this though when I create a new torrent using the same file however. Only when the using the .torrent file. I used the same torrent file in several other clients and didn't have this issue.

feross commented 7 years ago

Ugh, this sounds like a bad issue. Thanks for reporting. If you get a chance and can pinpoint the cause of the issue, a PR would be much appreciated 👍

Youhy commented 7 years ago

Cannot this be because of encoding? May be this issue may be fixed with something like encodeURIComponent(fileName)?

dancar commented 7 years ago

Couldn't reproduce. @Edward-Stryfe could you please provide some more context?

Sovxx commented 4 years ago

Hi, I got a similar issue.

Here is how to reproduce:

WebTorrent Version 0.21.0 (0.107.16) (64-bit) Windows 10 64bit

From https://peertube.fr/videos/watch/377a3f40-264a-4f38-9767-a7a4ff9dce9c when I download the torrent https://hitchtube.fr/download/torrents/377a3f40-264a-4f38-9767-a7a4ff9dce9c-1080.torrent the app shows the torrent is downloading normaly, but in fact, no mp4 is being saved on my HDD.

So, obviously, when I press the play button, the video does not launch.

Also, if I restart the app, I get this message: Path missing. Fix and restart the app, or delete the torrent.

I got the same issue for several video files that include a "?" or a ":" in their name.

Note : The file name is the torrent above is Mobicoop - Comment se met en place la gouvernance partagée au sein de notre coopérative ? 1080p.mp4 and it works fine with WebTorrent 0.21 on UBUNTU 64 (but not on Windows).

Sunsvea commented 2 years ago
WebTorrent Version 0.24.0 (0.108.6) (x64)
Windows 10 64bit

Bumping this up.

Been using Webtorrent with no issues for close to a year now, but just ran into this.

Downloaded a video series and every video that contains a ' : ' in it's filename is not playable in any video player, and is represented in the file system as a 0 byte file with no type.

However- when 'playing' these specific files through the Webtorrent interface, everything works just fine.

Names after download and in filesystem:

image

Names inside WebTorrent (with intended names):

image

github-actions[bot] commented 2 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?