]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube] Don't use the DASH manifest from 'get_video_info' if 'use_cipher_signature...
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 20 Jul 2015 18:35:26 +0000 (20:35 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 22 Jul 2015 21:27:41 +0000 (23:27 +0200)
Currently they give a 403 Forbidden error.

youtube_dl/extractor/youtube.py

index 3d8b31f9830b218e02021b41214010b4f61d29a9..323681960e8788a1c9ba735a0e3166f1249a3195 100644 (file)
@@ -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: