Browse Source

Properly handle stream meap not being present

master
Philipp Hagemeister 11 years ago
parent
commit
44d466559e
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/youtube.py

2
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:

Loading…
Cancel
Save