diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-01-21 17:29:04 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-01-21 17:29:04 +0100 |
commit | 608bf69880a09b5a7b409b584d15a66afdbc5ce5 (patch) | |
tree | d28a44d9f02d488b47619190b8acf8d1d1f1075f | |
parent | 032b3df5afd7bf5db053221d46a4b7a5e58df45d (diff) |
[vk] avoid built-in names
-rw-r--r-- | youtube_dl/extractor/vk.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py index 90d8a6d07..2719becbf 100644 --- a/youtube_dl/extractor/vk.py +++ b/youtube_dl/extractor/vk.py @@ -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'], } |