Browse Source

Missing provider argument

pull/584/head
Ruud 13 years ago
parent
commit
39b217caaa
  1. 6
      couchpotato/core/providers/nzb/newznab/main.py

6
couchpotato/core/providers/nzb/newznab/main.py

@ -176,17 +176,15 @@ class Newznab(NZBProvider, RSS):
return list
def belongsTo(self, url):
def belongsTo(self, url, provider = None):
hosts = self.getHosts()
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:
return result
return
def getUrl(self, host, type):
return cleanHost(host) + 'api?t=' + type

Loading…
Cancel
Save