mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Updated KAT urls
Fix for Newznab providers
This commit is contained in:
parent
7339ab9224
commit
0e34a41485
@ -228,7 +228,7 @@ class KATProvider(generic.TorrentProvider):
|
|||||||
|
|
||||||
entries = []
|
entries = []
|
||||||
for url in self.urls:
|
for url in self.urls:
|
||||||
searchURL = url + 'usearch/%s/?field=seeders&sorder=desc&rss=1' % (urllib.quote(unidecode(search_string)))
|
searchURL = url + 'usearch/%s/?field=seeders&sorder=desc&rss=1' % urllib.urlencode(search_string.encode('utf-8'))
|
||||||
logger.log(u"Search string: " + searchURL, logger.DEBUG)
|
logger.log(u"Search string: " + searchURL, logger.DEBUG)
|
||||||
|
|
||||||
entries = self.cache.getRSSFeed(url, items=['entries', 'feed'])['entries']
|
entries = self.cache.getRSSFeed(url, items=['entries', 'feed'])['entries']
|
||||||
|
@ -314,8 +314,8 @@ class NewznabProvider(generic.NZBProvider):
|
|||||||
# get total and offset attribs
|
# get total and offset attribs
|
||||||
try:
|
try:
|
||||||
if total == 0:
|
if total == 0:
|
||||||
total = int(data['feed']['newznab_response']['total'] or 0)
|
total = int(data['feed'].newznab_response['total'] or 0)
|
||||||
offset = int(data['feed']['newznab_response']['offset'] or 0)
|
offset = int(data['feed'].newznab_response['offset'] or 0)
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user