浏览代码

[youtube] Don't use the DASH manifest from 'get_video_info' if 'use_cipher_signature' is True (#5118)

Currently they give a 403 Forbidden error.
Jaime Marquínez Ferrándiz 10 年之前
父节点
当前提交
87dc451108
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/youtube.py

+ 2 - 1
youtube_dl/extractor/youtube.py

@@ -967,7 +967,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
                         video_id, note=False,
                         errnote='unable to download video info webpage')
                     get_video_info = compat_parse_qs(video_info_webpage)
-                    add_dash_mpd(get_video_info)
+                    if get_video_info.get('use_cipher_signature') != ['True']:
+                        add_dash_mpd(get_video_info)
                     if not video_info:
                         video_info = get_video_info
                     if 'token' in get_video_info: