mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 16:36:48 +00:00
[nowness] change id variable name
This commit is contained in:
parent
f33f32f159
commit
f95c5e1218
@ -31,14 +31,14 @@ class NownessBaseIE(InfoExtractor):
|
|||||||
return self.url_result('http://cinematique.com/embed/%s' % video_id, 'Cinematique')
|
return self.url_result('http://cinematique.com/embed/%s' % video_id, 'Cinematique')
|
||||||
|
|
||||||
def api_request(self, url, request_url):
|
def api_request(self, url, request_url):
|
||||||
id = self._match_id(url)
|
display_id = self._match_id(url)
|
||||||
|
|
||||||
lang = 'zh-cn' if 'cn.nowness.com' in url else 'en-us'
|
lang = 'zh-cn' if 'cn.nowness.com' in url else 'en-us'
|
||||||
request = compat_urllib_request.Request(request_url % id, headers={
|
request = compat_urllib_request.Request(request_url % display_id, headers={
|
||||||
'X-Nowness-Language': lang,
|
'X-Nowness-Language': lang,
|
||||||
})
|
})
|
||||||
json_data = self._download_json(request, id)
|
json_data = self._download_json(request, display_id)
|
||||||
return id, json_data
|
return display_id, json_data
|
||||||
|
|
||||||
|
|
||||||
class NownessIE(NownessBaseIE):
|
class NownessIE(NownessBaseIE):
|
||||||
|
Loading…
Reference in New Issue
Block a user