mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[generic] Improve MLB iframe regex
This commit is contained in:
		| @@ -887,7 +887,7 @@ class GenericIE(InfoExtractor): | |||||||
|             return self.url_result(mobj.group('url'), 'SBS') |             return self.url_result(mobj.group('url'), 'SBS') | ||||||
|  |  | ||||||
|         mobj = re.search( |         mobj = re.search( | ||||||
|             r'<iframe[^>]+?src=(["\'])(?P<url>https?://m\.mlb\.com/shared/video/embed/embed\.html\?.+?)\1', |             r'<iframe[^>]+?src=(["\'])(?P<url>https?://m(?:lb)?\.mlb\.com/shared/video/embed/embed\.html\?.+?)\1', | ||||||
|             webpage) |             webpage) | ||||||
|         if mobj is not None: |         if mobj is not None: | ||||||
|             return self.url_result(mobj.group('url'), 'MLB') |             return self.url_result(mobj.group('url'), 'MLB') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․