mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[generic] Support data-video-url for YouTube embeds (Fixes #2862)
This commit is contained in:
		| @@ -473,7 +473,7 @@ class GenericIE(InfoExtractor): | ||||
|  | ||||
|         # Look for embedded YouTube player | ||||
|         matches = re.findall(r'''(?x) | ||||
|             (?:<iframe[^>]+?src=|embedSWF\(\s*) | ||||
|             (?:<iframe[^>]+?src=|data-video-url=|embedSWF\(\s*) | ||||
|             (["\'])(?P<url>(?:https?:)?//(?:www\.)?youtube\.com/ | ||||
|                 (?:embed|v)/.+?) | ||||
|             \1''', webpage) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 anovicecodemonkey
					anovicecodemonkey