浏览代码

[youtube] pass embed URL to get_video_info request

Remita Amine 4 年之前
父节点
当前提交
ab25f3f431
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/extractor/youtube.py

+ 1 - 0
youtube_dl/extractor/youtube.py

@@ -1397,6 +1397,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,
                     }, fatal=False)),
                 lambda x: x['player_response'][0],
                 compat_str) or '{}', video_id)