A feature-rich command-line audio/video downloader
[youtube] Fix extraction of age gate videos (closes #3270)
Jaime Marquínez Ferrándiz2c57c7fa5a18
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex 6e77504bf1..071aa75195 100644--- a/youtube_dl/extractor/youtube.py+++ b/youtube_dl/extractor/youtube.py@@ -609,14 +609,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):age_gate = True# We simulate the access to the video from www.youtube.com/v/{video_id}# this can be viewed without login into Youtube- data = compat_urllib_parse.urlencode({'video_id': video_id,- 'el': 'player_embedded',- 'gl': 'US',- 'hl': 'en',- 'eurl': 'https://youtube.googleapis.com/v/' + video_id,- 'asv': 3,- 'sts':'1588',- })+ data = compat_urllib_parse.urlencode({+ 'video_id': video_id,+ 'eurl': 'https://youtube.googleapis.com/v/' + video_id,+ 'sts':'16268',+ })video_info_url = proto + '://www.youtube.com/get_video_info?' + datavideo_info_webpage = self._download_webpage(video_info_url, video_id,note=False,