1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-10-31 22:55:26 +00:00

[extractor/common] Fix audio only with audio group in m3u8 (closes #11995)

This commit is contained in:
Sergey M․ 2017-02-07 00:22:16 +07:00
parent d5d904ff7d
commit 242a14a1f6
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -1315,8 +1315,8 @@ class InfoExtractor(object):
'abr': abr,
})
f.update(parse_codecs(last_info.get('CODECS')))
if audio_in_video_stream.get(last_info.get('AUDIO')) is False:
# TODO: update acodec for for audio only formats with the same GROUP-ID
if audio_in_video_stream.get(last_info.get('AUDIO')) is False and f['vcodec'] != 'none':
# TODO: update acodec for audio only formats with the same GROUP-ID
f['acodec'] = 'none'
formats.append(f)
last_info = {}