RuudBurger/CouchPotatoServer — pull request #856 by jtabish (2012-09-22 04:11:55+00:00)
Title: Fix for downloading torrents via torrent cache sources

This fix will properly format the URL for the torrent cache sites to put the hash as uppercase instead of lowercase which was causing issues retrieving the torrent file from the source site because the files when requested are case-sensitive.

Also for debugging purposes I noticed that in the logs it would mention the torrent source as %s.torrent which I've corrected by changing the way the URL is built before sent via the urlopen function with the torrent info_hash variable.

This fix has been tested on my end and works perfectly so feel free to test on your end as well.

Thanks.