diff --git a/CHANGES.md b/CHANGES.md index 1ef1f54c..25297df2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -245,6 +245,7 @@ * Change update IMDb show parser * Fix rTorrent auth and magnet issue * Change torrent provider links for bts, et, rarbg, tpb +* Change IPT uri used for sanity check ### 0.11.16 (2016-10-16 17:30:00 UTC) diff --git a/sickbeard/providers/iptorrents.py b/sickbeard/providers/iptorrents.py index 50cf484d..dc9403bf 100644 --- a/sickbeard/providers/iptorrents.py +++ b/sickbeard/providers/iptorrents.py @@ -33,7 +33,7 @@ class IPTorrentsProvider(generic.TorrentProvider): self.url_home = (['https://iptorrents.%s/' % u for u in 'eu', 'com', 'me', 'ru'] + ['http://11111.workisboring.com/', 'https://ipt-update.com']) - self.url_vars = {'login': 'getrss.php', 'search': 't?%s;q=%s;qf=ti%s%s#torrents', 'get': '%s'} + self.url_vars = {'login': 't', 'search': 't?%s;q=%s;qf=ti%s%s#torrents', 'get': '%s'} self.url_tmpl = {'config_provider_home_uri': '%(home)s', 'login': '%(home)s%(vars)s', 'search': '%(home)s%(vars)s', 'get': '%(home)s%(vars)s'} @@ -47,7 +47,7 @@ class IPTorrentsProvider(generic.TorrentProvider): return super(IPTorrentsProvider, self)._authorised( logged_in=(lambda y='': all( - ['RSS Link' in y, self.has_all_cookies()] + + ['IPTorrents' in y, self.has_all_cookies()] + [(self.session.cookies.get(x) or 'sg!no!pw') in self.digest for x in 'uid', 'pass'])), failed_msg=(lambda y=None: u'Invalid cookie details for %s. Check settings'))