mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:37:08 -05:00 
			
		
		
		
	[youtube] Extract the 'sts' parameter from the webpage (fixes #3327)
This commit is contained in:
		@@ -611,7 +611,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
 | 
			
		||||
            data = compat_urllib_parse.urlencode({
 | 
			
		||||
                'video_id': video_id,
 | 
			
		||||
                'eurl': 'https://youtube.googleapis.com/v/' + video_id,
 | 
			
		||||
                'sts':'16268',
 | 
			
		||||
                'sts': self._search_regex(
 | 
			
		||||
                    r'"sts"\s*:\s*(\d+)', video_webpage, 'sts'),
 | 
			
		||||
            })
 | 
			
		||||
            video_info_url = proto + '://www.youtube.com/get_video_info?' + data
 | 
			
		||||
            video_info_webpage = self._download_webpage(video_info_url, video_id,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user