瀏覽代碼

[youtube] Workaround for get_video_info request (refs #29333)

See https://github.com/ytdl-org/youtube-dl/issues/29333#issuecomment-864049544
Sergey M․ 4 年之前
父節點
當前提交
03ab02730f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      youtube_dl/extractor/youtube.py

+ 3 - 0
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)