Newznab didn't return results
This commit is contained in:
@@ -32,12 +32,11 @@ class Newznab(NZBProvider, RSS):
|
||||
|
||||
hosts = self.getHosts()
|
||||
|
||||
results = []
|
||||
results = ResultList(self, movie, quality, imdb_result = True)
|
||||
|
||||
for host in hosts:
|
||||
result = self.singleSearch(host, movie, quality)
|
||||
|
||||
if result:
|
||||
results.extend(result)
|
||||
results.extend(result)
|
||||
|
||||
return results
|
||||
|
||||
@@ -46,7 +45,7 @@ class Newznab(NZBProvider, RSS):
|
||||
if self.isDisabled(host):
|
||||
return []
|
||||
|
||||
results = ResultList(self, movie, quality, imdb_result = True)
|
||||
results = []
|
||||
|
||||
cat_id = self.getCatId(quality['identifier'])
|
||||
arguments = tryUrlencode({
|
||||
@@ -87,6 +86,8 @@ class Newznab(NZBProvider, RSS):
|
||||
'content': self.getTextElement(nzb, 'description'),
|
||||
})
|
||||
|
||||
return results
|
||||
|
||||
def getHosts(self):
|
||||
|
||||
uses = splitString(str(self.conf('use')))
|
||||
|
||||
Reference in New Issue
Block a user