Browse Source

Updated search string for IP-torrents to search in title only, not title

and tag (thanks to tsoernes for the idea). Also removed l from categry
name in url as this is no longer needed.
pull/7073/head
Magnus H 9 years ago
parent
commit
910665c4bb
  1. 4
      couchpotato/core/media/_base/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):

Loading…
Cancel
Save