mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 02:32:16 +00:00
[vk] avoid built-in names
This commit is contained in:
parent
032b3df5af
commit
608bf69880
1 changed files with 7 additions and 7 deletions
|
@ -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'],
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue