[youtube] fix get_video_info request
authorRemita Amine <remitamine@gmail.com>
Sun, 21 Feb 2021 22:08:40 +0000 (23:08 +0100)
committerRemita Amine <remitamine@gmail.com>
Sun, 21 Feb 2021 22:09:09 +0000 (23:09 +0100)
youtube_dl/extractor/youtube.py

index 72d9fbbc6f9ecd768c34552d96b5dead0c4b80a3..2496d27f13dcd51b7b8a45e6e3f908c16fa57785 100644 (file)
@@ -1450,7 +1450,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                     'Refetching age-gated info webpage',
                     'unable to download video info webpage', query={
                         'video_id': video_id,
-                        'eurl': 'https://www.youtube.com/embed/' + video_id,
+                        'eurl': 'https://youtube.googleapis.com/v/' + video_id,
                     }, fatal=False)),
                 lambda x: x['player_response'][0],
                 compat_str) or '{}', video_id)