Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
DecodeFileURL
from TorrentFS.Open()URL is already decoded (you can print it to check, i guess it is decoded by library, although i have not found this in docs, but it is definitely already decoded), so if raw file path has special characters - then it will be unnecessarily "decoded" again and file will not be found.
e.g. if path has
%7C
in name. (it supposed to be|
but was encoded by publishing software, i guess)example of such strange file path:
https://animaunt.org/13543-napadenie-odinochki-na-inoy-mir.html
https://animaunt.org/13859-proschay-zhizn-drakona-zdravstvuy-zhizn-cheloveka.html
Прощай, жизнь дракона. Здравствуй, жизнь человека %7C Sayounara Ryuusei, Konnichiwa Jinsei
Нападение одиночки на иной мир %7C Hitoribocchi no Isekai Kouryaku
i tested my change on 16 different torrents - all ok.
Add
EncodeFileURL
for Audio filelike it was done for subtitles earlier escape path for subtitles #52
and how it was done for video from the beggining.
Add small debug message to TorrentFile.Download() to see what headers we add when we download
.torrent
file.