From 1d9df28c7d678d1845630c04c5d79ec6f4acd965 Mon Sep 17 00:00:00 2001 From: dirkf Date: Wed, 26 Jan 2022 20:42:42 +0000 Subject: [PATCH] [utils] Recognise FLAC audio in parse_codecs() --- youtube_dl/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 3fc78cf42..90d380f25 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -4766,7 +4766,7 @@ def parse_codecs(codecs_str): if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v', 'hvc1', 'av01', 'theora'): if not vcodec: vcodec = full_codec - elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'): + elif codec in ('flac', 'mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'): if not acodec: acodec = full_codec else: