Missing provider argument

This commit is contained in:
Ruud
2012-07-10 21:41:04 +02:00
parent 0dfefef0c5
commit 39b217caaa
@@ -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