1
0
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:
echel0n 2014-12-11 15:32:03 -08:00
parent 7339ab9224
commit 0e34a41485
2 changed files with 3 additions and 3 deletions

View File

@ -228,7 +228,7 @@ class KATProvider(generic.TorrentProvider):
entries = []
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)
entries = self.cache.getRSSFeed(url, items=['entries', 'feed'])['entries']

View File

@ -314,8 +314,8 @@ class NewznabProvider(generic.NZBProvider):
# get total and offset attribs
try:
if total == 0:
total = int(data['feed']['newznab_response']['total'] or 0)
offset = int(data['feed']['newznab_response']['offset'] or 0)
total = int(data['feed'].newznab_response['total'] or 0)
offset = int(data['feed'].newznab_response['offset'] or 0)
except AttributeError:
break