mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -05:00
Fixes issues with newznab providers
This commit is contained in:
parent
3beb2cb4e3
commit
905b41c46a
@ -212,13 +212,13 @@ class NewznabProvider(generic.NZBProvider):
|
|||||||
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)
|
||||||
|
|
||||||
if data and self._checkAuthFromData(data):
|
if data and 'entries' in data and self._checkAuthFromData(data):
|
||||||
for item in data:
|
for item in data.entries:
|
||||||
|
|
||||||
(title, url) = self._get_title_and_url(item)
|
(title, url) = self._get_title_and_url(item)
|
||||||
|
|
||||||
if title and url:
|
if title and url:
|
||||||
results.append(title,url)
|
results.append(item)
|
||||||
else:
|
else:
|
||||||
logger.log(
|
logger.log(
|
||||||
u"The data returned from the " + self.name + " is incomplete, this result is unusable",
|
u"The data returned from the " + self.name + " is incomplete, this result is unusable",
|
||||||
|
Loading…
Reference in New Issue
Block a user