mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	[generic] Support YouTube swf embed (Fixes #2010)
This commit is contained in:
		| @@ -233,8 +233,11 @@ class GenericIE(InfoExtractor): | |||||||
|             return self.url_result(surl, 'Vimeo') |             return self.url_result(surl, 'Vimeo') | ||||||
|  |  | ||||||
|         # Look for embedded YouTube player |         # Look for embedded YouTube player | ||||||
|         matches = re.findall( |         matches = re.findall(r'''(?x) | ||||||
|             r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?youtube\.com/embed/.+?)\1', webpage) |             (?:<iframe[^>]+?src=|embedSWF\(\s*) | ||||||
|  |             (["\'])(?P<url>(?:https?:)?//(?:www\.)?youtube\.com/ | ||||||
|  |                 (?:embed|v)/.+?) | ||||||
|  |             \1''', webpage) | ||||||
|         if matches: |         if matches: | ||||||
|             urlrs = [self.url_result(unescapeHTML(tuppl[1]), 'Youtube') |             urlrs = [self.url_result(unescapeHTML(tuppl[1]), 'Youtube') | ||||||
|                      for tuppl in matches] |                      for tuppl in matches] | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Philipp Hagemeister
					Philipp Hagemeister