mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[youtube] Bugfix in _extract_ytcfg
				
					
				
			This commit is contained in:
		| @@ -356,6 +356,8 @@ class YoutubeBaseInfoExtractor(InfoExtractor): | ||||
|         return data.get('DELEGATED_SESSION_ID') | ||||
|  | ||||
|     def _extract_ytcfg(self, video_id, webpage): | ||||
|         if not webpage: | ||||
|             return {} | ||||
|         return self._parse_json( | ||||
|             self._search_regex( | ||||
|                 r'ytcfg\.set\s*\(\s*({.+?})\s*\)\s*;', webpage, 'ytcfg', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan