mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 08:27:07 -05:00 
			
		
		
		
	[tvp] improve video id extraction(closes #10585)
This commit is contained in:
		@@ -69,7 +69,8 @@ class TVPIE(InfoExtractor):
 | 
			
		||||
        webpage = self._download_webpage(url, page_id)
 | 
			
		||||
        video_id = self._search_regex([
 | 
			
		||||
            r'<iframe[^>]+src="[^"]*?object_id=(\d+)',
 | 
			
		||||
            "object_id\s*:\s*'(\d+)'"], webpage, 'video id')
 | 
			
		||||
            r"object_id\s*:\s*'(\d+)'",
 | 
			
		||||
            r'data-video-id="(\d+)"'], webpage, 'video id', default=page_id)
 | 
			
		||||
        return {
 | 
			
		||||
            '_type': 'url_transparent',
 | 
			
		||||
            'url': 'tvp:' + video_id,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user