diff options
author | Philipp Hagemeister <[email protected]> | 2013-10-01 14:44:09 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-10-01 14:44:09 +0200 |
commit | 44d466559e9d1e762456a2dce4fc6cb0775f105e (patch) | |
tree | 15ef33e86b5059203a81beb791d4501f9b2b6214 | |
parent | 05751eb0479b988a89d650befea239a32bddbfd9 (diff) | |
download | youtube-dl-44d466559e9d1e762456a2dce4fc6cb0775f105e.tar.gz youtube-dl-44d466559e9d1e762456a2dce4fc6cb0775f105e.zip |
Properly handle stream meap not being present
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index f3b9e3ab1..890667340 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1390,7 +1390,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor): args = info['args'] # Easy way to know if the 's' value is in url_encoded_fmt_stream_map # this signatures are encrypted - if 'url_encoded_fmt_stream_map': + if 'url_encoded_fmt_stream_map' not in args: raise ValueError(u'No stream_map present') # caught below m_s = re.search(r'[&,]s=', args['url_encoded_fmt_stream_map']) if m_s is not None: |