Fixed newznab to search no more then 1000 results

This commit is contained in:
echel0n 2014-09-07 00:56:23 -07:00
parent ba4b408af3
commit 991a93991e

View file

@ -265,7 +265,7 @@ class NewznabProvider(generic.NZBProvider):
results = [] results = []
offset = total = 0 offset = total = 0
while total >= offset: while total >= (offset or 1000):
search_url = self.url + 'api?' + urllib.urlencode(params) search_url = self.url + 'api?' + urllib.urlencode(params)
logger.log(u"Search url: " + search_url, logger.DEBUG) logger.log(u"Search url: " + search_url, logger.DEBUG)
data = self.cache.getRSSFeed(search_url) data = self.cache.getRSSFeed(search_url)