mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
Handle videos without url_encoded_fmt_stream_map (Fixes #1535)
This commit is contained in:
parent
722076a123
commit
f10503db67
1 changed files with 2 additions and 0 deletions
|
@ -1390,6 +1390,8 @@ def _real_extract(self, url):
|
||||||
args = info['args']
|
args = info['args']
|
||||||
# Easy way to know if the 's' value is in url_encoded_fmt_stream_map
|
# Easy way to know if the 's' value is in url_encoded_fmt_stream_map
|
||||||
# this signatures are encrypted
|
# 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'])
|
m_s = re.search(r'[&,]s=', args['url_encoded_fmt_stream_map'])
|
||||||
if m_s is not None:
|
if m_s is not None:
|
||||||
self.to_screen(u'%s: Encrypted signatures detected.' % video_id)
|
self.to_screen(u'%s: Encrypted signatures detected.' % video_id)
|
||||||
|
|
Loading…
Reference in a new issue