diff options
author | Philipp Hagemeister <[email protected]> | 2013-10-01 11:39:11 +0200 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2013-10-01 11:39:11 +0200 |
commit | f10503db67fb01f85755159ef2ad4d3bc3a58b7a (patch) | |
tree | 88014f6162685a0ce53f8f3aab268025776574dd | |
parent | 722076a123c60ed6d5a978c4bc2609f46c8e3ee9 (diff) | |
download | youtube-dl-f10503db67fb01f85755159ef2ad4d3bc3a58b7a.tar.gz youtube-dl-f10503db67fb01f85755159ef2ad4d3bc3a58b7a.zip |
Handle videos without url_encoded_fmt_stream_map (Fixes #1535)
-rw-r--r-- | youtube_dl/extractor/youtube.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 53f13b516..f3b9e3ab1 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1390,6 +1390,8 @@ 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': + 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: self.to_screen(u'%s: Encrypted signatures detected.' % video_id) |