[vk] avoid built-in names

master
Philipp Hagemeister 2014-01-21 17:29:04 +01:00
parent 032b3df5af
commit 608bf69880
1 changed files with 7 additions and 7 deletions

View File

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