summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-11-30 21:07:50 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2014-11-30 21:07:50 +0100
commit7160532d41af171e6ffa41986b04bc51b934a5ad (patch)
treec8045ecba40c4716a41e732364b1346397343cfb
parent4e62ebe25013b07dd43e27eea37710b2c374455f (diff)
downloadyoutube-dl-7160532d41af171e6ffa41986b04bc51b934a5ad.tar.gz
youtube-dl-7160532d41af171e6ffa41986b04bc51b934a5ad.tar.xz
youtube-dl-7160532d41af171e6ffa41986b04bc51b934a5ad.zip
[youtube] Simplify code for getting the dash manifest url
video_info contains now the 'ytplayer.config.args' dictionary
-rw-r--r--youtube_dl/extractor/youtube.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 6d48761c6..6268b012f 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -933,10 +933,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
                 # However, in the case of an age restriction there won't be any embedded dashmpd in the video_webpage.
                 # Luckily, it seems, this case uses some kind of default signature (len == 86), so the
                 # combination of get_video_info and the _static_decrypt_signature() decryption fallback will work here.
-                if age_gate:
-                    dash_manifest_url = video_info.get('dashmpd')[0]
-                else:
-                    dash_manifest_url = ytplayer_config['args']['dashmpd']
+                dash_manifest_url = video_info.get('dashmpd')[0]
 
                 def decrypt_sig(mobj):
                     s = mobj.group(1)