mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-13 16:25:05 +00:00
Fixes issues with newznab providers
This commit is contained in:
parent
3beb2cb4e3
commit
905b41c46a
1 changed files with 3 additions and 3 deletions
|
@ -212,13 +212,13 @@ class NewznabProvider(generic.NZBProvider):
|
|||
logger.log(u"Search url: " + search_url, logger.DEBUG)
|
||||
data = self.cache.getRSSFeed(search_url)
|
||||
|
||||
if data and self._checkAuthFromData(data):
|
||||
for item in data:
|
||||
if data and 'entries' in data and self._checkAuthFromData(data):
|
||||
for item in data.entries:
|
||||
|
||||
(title, url) = self._get_title_and_url(item)
|
||||
|
||||
if title and url:
|
||||
results.append(title,url)
|
||||
results.append(item)
|
||||
else:
|
||||
logger.log(
|
||||
u"The data returned from the " + self.name + " is incomplete, this result is unusable",
|
||||
|
|
Loading…
Reference in a new issue