mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[espn] Improve video id extraction (Closes #8368)
This commit is contained in:
		@@ -53,8 +53,8 @@ class ESPNIE(InfoExtractor):
 | 
				
			|||||||
        webpage = self._download_webpage(url, video_id)
 | 
					        webpage = self._download_webpage(url, video_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        video_id = self._search_regex(
 | 
					        video_id = self._search_regex(
 | 
				
			||||||
            r'class="video-play-button"[^>]+data-id="(\d+)',
 | 
					            r'class=(["\']).*?video-play-button.*?\1[^>]+data-id=["\'](?P<id>\d+)',
 | 
				
			||||||
            webpage, 'video id')
 | 
					            webpage, 'video id', group='id')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        cms = 'espn'
 | 
					        cms = 'espn'
 | 
				
			||||||
        if 'data-source="intl"' in webpage:
 | 
					        if 'data-source="intl"' in webpage:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user