Private GIT

Skip to content
Snippets Groups Projects
Commit 2c0af153 authored by Ruud's avatar Ruud
Browse files

Torcache doesn't give back proper 404

parent 36f653f6
Branches
Tags
No related merge requests found
......@@ -67,7 +67,10 @@ class Downloader(Plugin):
for source in sources:
try:
filedata = self.urlopen(source % torrent_hash, show_error = False)
filedata = self.urlopen(source % torrent_hash, headers = {'Referer': ''}, show_error = False)
if 'torcache' in filedata and 'file not found' in filedata.lower():
continue
return filedata
except:
log.debug('Torrent hash "%s" wasn\'t found on: %s', (torrent_hash, source))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment