Unable to download torrent files through torcache

So I’ve solved the CouchPotato bug. I’m not 100% sure if it relates here but I have a hunch that it might.

Issue:
torcache.net has a “Your download is about to start” timer before it actually grabs the file for you. So what happens is that the html content is downloaded instead. Then bdecode runs against it and it fails.

Solution:
Wherever the code for opening the url is at, you need to set the Referer to https://torcache.net/ because torcache.net basically says “if my referer is that, don’t make me wait”.

I was able to make that change on my CouchPotato and it worked. But I don’t have access to the Sonarr code on my seedbox (I think it is installed for all users so I don’t have it under my home) so I can’t try to make the patch myself.

Hopefully this helps whoever might be working on this issue.

1 Like