From: Sergey M․ Date: Mon, 6 Feb 2017 17:22:16 +0000 (+0700) Subject: [extractor/common] Fix audio only with audio group in m3u8 (closes #11995) X-Git-Tag: 2021.01.07~3683 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/242a14a1f6ea14b8e7de9aa1eddaf938de825e1e [extractor/common] Fix audio only with audio group in m3u8 (closes #11995) --- diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 519188622..0b4e2ac20 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1315,8 +1315,8 @@ def _extract_m3u8_formats(self, m3u8_url, video_id, ext=None, '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 = {}