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