mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed issues regarding KAT torrent provider and feedcache
This commit is contained in:
parent
0209852af5
commit
d183debc4b
@ -233,7 +233,7 @@ class KATProvider(generic.TorrentProvider):
|
|||||||
searchURL = url + 'usearch/%s/?field=seeders&sorder=desc&rss=1' % urllib.quote(search_string)
|
searchURL = url + 'usearch/%s/?field=seeders&sorder=desc&rss=1' % urllib.quote(search_string)
|
||||||
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(searchURL, items=['entries', 'feed'])['entries']
|
||||||
if entries:
|
if entries:
|
||||||
break
|
break
|
||||||
|
|
||||||
@ -360,7 +360,7 @@ class KATCache(tvcache.TVCache):
|
|||||||
searchURL = url + 'tv/?field=time_add&sorder=desc&rss=1'
|
searchURL = url + 'tv/?field=time_add&sorder=desc&rss=1'
|
||||||
logger.log(u"KAT cache update URL: " + searchURL, logger.DEBUG)
|
logger.log(u"KAT cache update URL: " + searchURL, logger.DEBUG)
|
||||||
|
|
||||||
data = self.getRSSFeed(url, items=['entries', 'feed'])
|
data = self.getRSSFeed(searchURL, items=['entries', 'feed'])
|
||||||
if data['entries']:
|
if data['entries']:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user