aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/nowness.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-09-05 20:51:27 +0100
committerremitamine <remitamine@gmail.com>2015-09-05 20:51:27 +0100
commitf95c5e1218aacc5cc4c01b19f5ee9f7baf9269d6 (patch)
treee4d878c12fd1eac16b5a392411bd4e3de7c4a7d3 /youtube_dl/extractor/nowness.py
parentf33f32f1591087743454cbaa6a6689299f1da1d4 (diff)
[nowness] change id variable name
Diffstat (limited to 'youtube_dl/extractor/nowness.py')
-rw-r--r--youtube_dl/extractor/nowness.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/nowness.py b/youtube_dl/extractor/nowness.py
index 04d614c9c..a8ee4fe68 100644
--- a/youtube_dl/extractor/nowness.py
+++ b/youtube_dl/extractor/nowness.py
@@ -31,14 +31,14 @@ class NownessBaseIE(InfoExtractor):
return self.url_result('http://cinematique.com/embed/%s' % video_id, 'Cinematique')
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'
- request = compat_urllib_request.Request(request_url % id, headers={
+ request = compat_urllib_request.Request(request_url % display_id, headers={
'X-Nowness-Language': lang,
})
- json_data = self._download_json(request, id)
- return id, json_data
+ json_data = self._download_json(request, display_id)
+ return display_id, json_data
class NownessIE(NownessBaseIE):