mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-07 11:58:01 -05:00
Fix for issue #1087 - KAT torrent provider value unpacking issue resolved.
This commit is contained in:
parent
06915f3a15
commit
2adfa81341
@ -230,7 +230,11 @@ 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(search_string)
|
if mode != 'RSS':
|
||||||
|
searchURL = url + 'usearch/%s/?field=seeders&sorder=desc&rss=1' % urllib.quote(search_string)
|
||||||
|
else:
|
||||||
|
searchURL = url + 'tv/?field=time_add&sorder=desc&rss=1'
|
||||||
|
|
||||||
logger.log(u"Search string: " + searchURL, logger.DEBUG)
|
logger.log(u"Search string: " + searchURL, logger.DEBUG)
|
||||||
|
|
||||||
entries = self.cache.getRSSFeed(searchURL, items=['entries', 'feed'])['entries']
|
entries = self.cache.getRSSFeed(searchURL, items=['entries', 'feed'])['entries']
|
||||||
@ -251,7 +255,7 @@ class KATProvider(generic.TorrentProvider):
|
|||||||
except (AttributeError, TypeError):
|
except (AttributeError, TypeError):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if seeders < self.minseed or leechers < self.minleech:
|
if mode != 'RSS' and (seeders < self.minseed or leechers < self.minleech):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.confirmed and not verified:
|
if self.confirmed and not verified:
|
||||||
@ -354,16 +358,7 @@ class KATCache(tvcache.TVCache):
|
|||||||
self.minTime = 20
|
self.minTime = 20
|
||||||
|
|
||||||
def _getRSSData(self):
|
def _getRSSData(self):
|
||||||
data = {'entries': None}
|
search_params = {'RSS': ['rss']}
|
||||||
|
return {'entries': self.provider._doSearch(search_params)}
|
||||||
for url in self.provider.urls:
|
|
||||||
searchURL = url + 'tv/?field=time_add&sorder=desc&rss=1'
|
|
||||||
logger.log(u"KAT cache update URL: " + searchURL, logger.DEBUG)
|
|
||||||
|
|
||||||
data = self.getRSSFeed(searchURL, items=['entries', 'feed'])
|
|
||||||
if data['entries']:
|
|
||||||
break
|
|
||||||
|
|
||||||
return data
|
|
||||||
|
|
||||||
provider = KATProvider()
|
provider = KATProvider()
|
||||||
|
Loading…
Reference in New Issue
Block a user