A feature-rich command-line audio/video downloader
Properly handle stream meap not being present
Philipp Hagemeister44d466559e9d
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.pyindex f3b9e3ab17..8906673408 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 belowm_s = re.search(r'[&,]s=', args['url_encoded_fmt_stream_map'])if m_s is not None: