mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 01:25:11 +00:00
[extractor/common] Fix audio only with audio group in m3u8 (closes #11995)
This commit is contained in:
parent
d5d904ff7d
commit
242a14a1f6
1 changed files with 2 additions and 2 deletions
|
@ -1315,8 +1315,8 @@ def _extract_m3u8_formats(self, m3u8_url, video_id, ext=None,
|
||||||
'abr': abr,
|
'abr': abr,
|
||||||
})
|
})
|
||||||
f.update(parse_codecs(last_info.get('CODECS')))
|
f.update(parse_codecs(last_info.get('CODECS')))
|
||||||
if audio_in_video_stream.get(last_info.get('AUDIO')) is False:
|
if audio_in_video_stream.get(last_info.get('AUDIO')) is False and f['vcodec'] != 'none':
|
||||||
# TODO: update acodec for for audio only formats with the same GROUP-ID
|
# TODO: update acodec for audio only formats with the same GROUP-ID
|
||||||
f['acodec'] = 'none'
|
f['acodec'] = 'none'
|
||||||
formats.append(f)
|
formats.append(f)
|
||||||
last_info = {}
|
last_info = {}
|
||||||
|
|
Loading…
Reference in a new issue