Torcache doesn't give back proper 404
This commit is contained in:
@@ -67,7 +67,10 @@ class Downloader(Plugin):
|
|||||||
|
|
||||||
for source in sources:
|
for source in sources:
|
||||||
try:
|
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
|
return filedata
|
||||||
except:
|
except:
|
||||||
log.debug('Torrent hash "%s" wasn\'t found on: %s', (torrent_hash, source))
|
log.debug('Torrent hash "%s" wasn\'t found on: %s', (torrent_hash, source))
|
||||||
|
|||||||
Reference in New Issue
Block a user