Error when downloading .torrent file with []{} characters in filename

Issue #2 resolved
Former user created an issue

Hi, its me again. Just found out that .torrent files are not downloaded when they contain characters like { } o [ ] in the file name, got "Failed [3]" as result. I figured out there was an error with curl as paretheses must be escaped for curl to work

Looking at this https://bbs.archlinux.org/viewtopic.php?id=74675 i added --globoff in leech-default script for a dirty workaround and it works. But thats... dirty :)

Comments (4)

  1. Aleksey Tulinov repo owner

    Main issue is that RSS feed is broken, spec clearly says <link> content must be URL which can't contain [ ] or { }. Normally this issue should be resolved by URL-encoding content of the <link> on server which is producing feed.

    Here is URL example from isoHunt: http://ca.isohunt.com/download/44648933/big+buck+bunny+%5B720p%5D.torrent

    It might be possible to urlencode links in leech with some workaround, but i do not fix some-other-guy bugs in leech.

    Your solution is fine as a workaround for this feed, but it doesn't fix main issue completely. You can make it your own recipe and use it instead of leech-default by editing /etc/leech/default:DEFAULT_RECIPE=. If you create your own recipe, it won't be overwritten during next leech update.

    Or you could try http://pipes.yahoo.com/, it does fix character encoding issues (https://bitbucket.org/alekseyt/leech#markdown-header-leech-prints-error-about-parsing-of-feeds-in-some-outdated-encoding-eg-cp1251), it might also encode URL, possibly.

  2. Log in to comment