Torcache doesn't give back proper 404

This commit is contained in:
Ruud
2012-09-11 20:48:27 +02:00
parent 36f653f65b
commit 2c0af15325
+4 -1
View File
@@ -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))