[nowness] change id variable name
authorremitamine <remitamine@gmail.com>
Sat, 5 Sep 2015 19:51:27 +0000 (20:51 +0100)
committerremitamine <remitamine@gmail.com>
Sat, 5 Sep 2015 19:51:27 +0000 (20:51 +0100)
youtube_dl/extractor/nowness.py

index 04d614c9c2d91c504ca414c685ba0caf7a96ac9d..a8ee4fe689468e8ea9928eecb50a35fde56702bc 100644 (file)
@@ -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):