diff --git a/sickbeard/providers/kat.py b/sickbeard/providers/kat.py index 25342f94..1d40b3fd 100644 --- a/sickbeard/providers/kat.py +++ b/sickbeard/providers/kat.py @@ -351,8 +351,13 @@ class KATProvider(generic.TorrentProvider): try: r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False) except Exception, e: - logger.log("Unable to connect to Torcache: " + ex(e), logger.ERROR) - return False + logger.log("Unable to connect to TORCACHE: " + ex(e), logger.ERROR) + 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: return False diff --git a/sickbeard/providers/publichd.py b/sickbeard/providers/publichd.py index 9d6aba21..42f1bfd3 100644 --- a/sickbeard/providers/publichd.py +++ b/sickbeard/providers/publichd.py @@ -243,8 +243,13 @@ class PublicHDProvider(generic.TorrentProvider): try: r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False) except Exception, e: - logger.log("Unable to connect to Torcache: " + ex(e), logger.ERROR) - return False + logger.log("Unable to connect to TORCACHE: " + ex(e), logger.ERROR) + 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: return False diff --git a/sickbeard/providers/thepiratebay.py b/sickbeard/providers/thepiratebay.py index 70c5e2c8..28cfcbc9 100644 --- a/sickbeard/providers/thepiratebay.py +++ b/sickbeard/providers/thepiratebay.py @@ -332,8 +332,13 @@ class ThePirateBayProvider(generic.TorrentProvider): try: r = self.session.get('http://torcache.net/torrent/' + torrent_hash + '.torrent', verify=False) except Exception, e: - logger.log("Unable to connect to Torcache: " + ex(e), logger.ERROR) - return False + logger.log("Unable to connect to TORCACHE: " + ex(e), logger.ERROR) + 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: return False