mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-15 09:07:43 +00:00
Added Torrage.com as alternative site to Torcache.net
This commit is contained in:
parent
66e499ab23
commit
e7931f0c7f
3 changed files with 21 additions and 6 deletions
|
@ -351,8 +351,13 @@ class KATProvider(generic.TorrentProvider):
|
||||||
try:
|
try:
|
||||||
r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False)
|
r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log("Unable to connect to Torcache: " + ex(e), logger.ERROR)
|
logger.log("Unable to connect to TORCACHE: " + ex(e), logger.ERROR)
|
||||||
return False
|
try:
|
||||||
|
logger.log("Trying TORRAGE cache instead")
|
||||||
|
r = self.session.get('http://torrage.com/torrent/' + torrent_hash + '.torrent', verify=False)
|
||||||
|
except Exception, e:
|
||||||
|
logger.log("Unable to connect to TORRAGE: " + ex(e), logger.ERROR)
|
||||||
|
return False
|
||||||
|
|
||||||
if not r.status_code == 200:
|
if not r.status_code == 200:
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -243,8 +243,13 @@ class PublicHDProvider(generic.TorrentProvider):
|
||||||
try:
|
try:
|
||||||
r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False)
|
r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log("Unable to connect to Torcache: " + ex(e), logger.ERROR)
|
logger.log("Unable to connect to TORCACHE: " + ex(e), logger.ERROR)
|
||||||
return False
|
try:
|
||||||
|
logger.log("Trying TORRAGE cache instead")
|
||||||
|
r = self.session.get('http://torrage.com/torrent/' + torrent_hash + '.torrent', verify=False)
|
||||||
|
except Exception, e:
|
||||||
|
logger.log("Unable to connect to TORRAGE: " + ex(e), logger.ERROR)
|
||||||
|
return False
|
||||||
|
|
||||||
if not r.status_code == 200:
|
if not r.status_code == 200:
|
||||||
return False
|
return False
|
||||||
|
|
|
@ -332,8 +332,13 @@ class ThePirateBayProvider(generic.TorrentProvider):
|
||||||
try:
|
try:
|
||||||
r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False)
|
r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.log("Unable to connect to Torcache: " + ex(e), logger.ERROR)
|
logger.log("Unable to connect to TORCACHE: " + ex(e), logger.ERROR)
|
||||||
return False
|
try:
|
||||||
|
logger.log("Trying TORRAGE cache instead")
|
||||||
|
r = self.session.get('http://torrage.com/torrent/' + torrent_hash + '.torrent', verify=False)
|
||||||
|
except Exception, e:
|
||||||
|
logger.log("Unable to connect to TORRAGE: " + ex(e), logger.ERROR)
|
||||||
|
return False
|
||||||
|
|
||||||
if not r.status_code == 200:
|
if not r.status_code == 200:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue