[youtube] Workaround for get_video_info request (refs #29333)
authorSergey M․ <dstftw@gmail.com>
Sun, 20 Jun 2021 18:34:27 +0000 (01:34 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 20 Jun 2021 18:34:27 +0000 (01:34 +0700)
See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544

youtube_dl/extractor/youtube.py

index 35058950aed1c1458566f742ba6d856f4b30e63d..e68214008da5b8ef7da493fc209ad8147953fd05 100644 (file)
@@ -1512,6 +1512,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                         'video_id': video_id,
                         'eurl': 'https://youtube.googleapis.com/v/' + video_id,
                         'html5': 1,
+                        # See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544
+                        'c': 'TVHTML5',
+                        'cver': '6.20180913',
                     }, fatal=False)),
                 lambda x: x['player_response'][0],
                 compat_str) or '{}', video_id)