Browse Source

Merge pull request #7073 from magnushegge/ipt-fix

Updated category numbers for IP-Torrents.
pull/7122/head
Ruud Burger 9 years ago
committed by GitHub
parent
commit
2aba686499
  1. 4
      couchpotato/core/media/_base/providers/torrent/iptorrents.py
  2. 10
      couchpotato/core/media/movie/providers/torrent/iptorrents.py

4
couchpotato/core/media/_base/providers/torrent/iptorrents.py

@ -18,7 +18,7 @@ class Base(TorrentProvider):
'base_url': 'https://iptorrents.eu',
'login': 'https://iptorrents.eu/',
'login_check': 'https://iptorrents.eu/oldinbox.php',
'search': 'https://iptorrents.eu/t?%s%%s&q=%s&qf=#torrents&p=%%d',
'search': 'https://iptorrents.eu/t?%s%%s&q=%s&qf=ti#torrents&p=%%d',
}
http_time_between_calls = 1 # Seconds
@ -36,7 +36,7 @@ class Base(TorrentProvider):
log.warning('Unable to find category ids for identifier "%s"', quality.get('identifier'))
return None
return self.urls['search'] % ("&".join(("l%d=" % x) for x in cat_ids), tryUrlencode(query).replace('%', '%%'))
return self.urls['search'] % ("&".join(("%d=" % x) for x in cat_ids), tryUrlencode(query).replace('%', '%%'))
def _searchOnTitle(self, title, media, quality, results):

10
couchpotato/core/media/movie/providers/torrent/iptorrents.py

@ -11,10 +11,12 @@ class IPTorrents(MovieProvider, Base):
cat_ids = [
([87], ['3d']),
([48], ['720p', '1080p', 'bd50']),
([72], ['cam', 'ts', 'tc', 'r5', 'scr']),
([7, 48, 20], ['dvdrip', 'brrip']),
([6], ['dvdr']),
([48], ['720p', '1080p']),
([89], ['bd50']),
([96], ['cam', 'ts', 'tc', 'r5', 'scr']),
([48, 20, 90], ['brrip']),
([7, 77], ['dvdrip']),
([6], ['dvdr'])
]
def buildUrl(self, title, media, quality):

Loading…
Cancel
Save