Missing provider argument
This commit is contained in:
@@ -176,17 +176,15 @@ class Newznab(NZBProvider, RSS):
|
|||||||
|
|
||||||
return list
|
return list
|
||||||
|
|
||||||
def belongsTo(self, url):
|
def belongsTo(self, url, provider = None):
|
||||||
|
|
||||||
hosts = self.getHosts()
|
hosts = self.getHosts()
|
||||||
|
|
||||||
for host in hosts:
|
for host in hosts:
|
||||||
result = super(Newznab, self).belongsTo(url, host = host['host'])
|
result = super(Newznab, self).belongsTo(url, host = host['host'], provider)
|
||||||
if result:
|
if result:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
def getUrl(self, host, type):
|
def getUrl(self, host, type):
|
||||||
return cleanHost(host) + 'api?t=' + type
|
return cleanHost(host) + 'api?t=' + type
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user