[vk] avoid built-in names
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 21 Jan 2014 16:29:04 +0000 (17:29 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 21 Jan 2014 16:29:04 +0000 (17:29 +0100)
youtube_dl/extractor/vk.py

index 90d8a6d072c7b01ab623effaa21a0a5784c3a221..2719becbfc15e0f32bdae5f3d86a34e7e59f3aba 100644 (file)
@@ -33,13 +33,13 @@ class VKIE(InfoExtractor):
         if m_yt is not None:
             self.to_screen(u'Youtube video detected')
             return self.url_result(m_yt.group(1), 'Youtube')
-        vars_json = self._search_regex(r'var vars = ({.*?});', info_page, u'vars')
-        vars = json.loads(vars_json)
+        data_json = self._search_regex(r'var vars = ({.*?});', info_page, u'vars')
+        data = json.loads(data_json)
 
         return {
-            'id': compat_str(vars['vid']),
-            'url': vars['url240'],
-            'title': unescapeHTML(vars['md_title']),
-            'thumbnail': vars['jpg'],
-            'uploader': vars['md_author'],
+            'id': compat_str(data['vid']),
+            'url': data['url240'],
+            'title': unescapeHTML(data['md_title']),
+            'thumbnail': data['jpg'],
+            'uploader': data['md_author'],
         }