From: Philipp Hagemeister Date: Tue, 1 Oct 2013 12:44:09 +0000 (+0200) Subject: Properly handle stream meap not being present X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=44d466559e9d1e762456a2dce4fc6cb0775f105e;p=youtube-dl Properly handle stream meap not being present --- 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: