mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:37:08 -05:00 
			
		
		
		
	[vk] avoid built-in names
This commit is contained in:
		@@ -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'],
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user