[common] recognize hls manifests that contain video only formats(#11394)
This commit is contained in:
parent
0d7d9f9404
commit
8821a718cf
3 changed files with 10 additions and 13 deletions
|
@ -78,11 +78,6 @@ class MSNIE(InfoExtractor):
|
|||
m3u8_formats = self._extract_m3u8_formats(
|
||||
format_url, display_id, 'mp4',
|
||||
m3u8_id='hls', fatal=False)
|
||||
# Despite metadata in m3u8 all video+audio formats are
|
||||
# actually video-only (no audio)
|
||||
for f in m3u8_formats:
|
||||
if f.get('acodec') != 'none' and f.get('vcodec') != 'none':
|
||||
f['acodec'] = 'none'
|
||||
formats.extend(m3u8_formats)
|
||||
else:
|
||||
formats.append({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue