Newznab custom tag wasn't used. fix #3219
This commit is contained in:
@@ -45,7 +45,7 @@ class Base(NZBProvider, RSS):
|
||||
|
||||
def _searchOnHost(self, host, media, quality, results):
|
||||
|
||||
query = self.buildUrl(media, host['api_key'])
|
||||
query = self.buildUrl(media, host)
|
||||
url = '%s&%s' % (self.getUrl(host['host']), query)
|
||||
nzbs = self.getRSSData(url, cache_timeout = 1800, headers = {'User-Agent': Env.getIdentifier()})
|
||||
|
||||
|
||||
@@ -11,11 +11,16 @@ autoload = 'Newznab'
|
||||
|
||||
class Newznab(MovieProvider, Base):
|
||||
|
||||
def buildUrl(self, media, api_key):
|
||||
def buildUrl(self, media, host):
|
||||
|
||||
query = tryUrlencode({
|
||||
't': 'movie',
|
||||
'imdbid': getIdentifier(media).replace('tt', ''),
|
||||
'apikey': api_key,
|
||||
'apikey': host['api_key'],
|
||||
'extended': 1
|
||||
})
|
||||
|
||||
if len(host.get('custom_tag', '')) > 0:
|
||||
query = '%s&%s' % (query, host.get('custom_tag'))
|
||||
|
||||
return query
|
||||
|
||||
Reference in New Issue
Block a user