0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-29 01:51:06 +00:00

Properly handle stream meap not being present

This commit is contained in:
Philipp Hagemeister 2013-10-01 14:44:09 +02:00
parent 05751eb047
commit 44d466559e

View file

@ -1390,7 +1390,7 @@ def _real_extract(self, url):
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: