Merge pull request #839 from JackDandy/feature/ChangeIPTProv

Change IPT uri used for sanity check.
This commit is contained in:
JackDandy 2016-12-12 02:40:16 +00:00 committed by GitHub
commit 88d939c1e9
2 changed files with 3 additions and 2 deletions

View file

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

View file

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