From 991a93991e515630e75d82b723aa711e98f1bd43 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sun, 7 Sep 2014 00:56:23 -0700 Subject: [PATCH] Fixed newznab to search no more then 1000 results --- sickbeard/providers/newznab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sickbeard/providers/newznab.py b/sickbeard/providers/newznab.py index f6802008..ba7bada4 100755 --- a/sickbeard/providers/newznab.py +++ b/sickbeard/providers/newznab.py @@ -265,7 +265,7 @@ class NewznabProvider(generic.NZBProvider): results = [] offset = total = 0 - while total >= offset: + while total >= (offset or 1000): search_url = self.url + 'api?' + urllib.urlencode(params) logger.log(u"Search url: " + search_url, logger.DEBUG) data = self.cache.getRSSFeed(search_url)