about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2021-06-21 01:34:27 +0700
committerSergey M․ <dstftw@gmail.com>2021-06-21 01:34:27 +0700
commit03ab02730f77da5b7ad05ca78ff1624d8226ec5f (patch)
tree3b858231876e66f934eeb93f9222069cc230f9bd
parent4c77a2e538fb23da116aaba0f51e314ef76feb68 (diff)
downloadyoutube-dl-03ab02730f77da5b7ad05ca78ff1624d8226ec5f.tar.gz
youtube-dl-03ab02730f77da5b7ad05ca78ff1624d8226ec5f.tar.xz
youtube-dl-03ab02730f77da5b7ad05ca78ff1624d8226ec5f.zip
[youtube] Workaround for get_video_info request (refs #29333)
See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544
-rw-r--r--youtube_dl/extractor/youtube.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 35058950a..e68214008 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -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)