Browse Source

Torcache doesn't give back proper 404

pull/834/head
Ruud 13 years ago
parent
commit
2c0af15325
  1. 5
      couchpotato/core/downloaders/base.py

5
couchpotato/core/downloaders/base.py

@ -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))

Loading…
Cancel
Save