From 7a33699ae2f780dd064479ae65553e913d5729e2 Mon Sep 17 00:00:00 2001 From: InvalidUsernameException Date: Tue, 27 May 2025 18:29:23 +0200 Subject: [PATCH] Do not report f_class in format note for audio-only formats This value often tends to be wrong, since the site defines it for a `master.m3u8` file. But such a file can and will contain multiple different audio streams, some of which do not match what is reported in f_class. --- yt_dlp/extractor/zdf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/zdf.py b/yt_dlp/extractor/zdf.py index 072f4191b2..1da807292f 100644 --- a/yt_dlp/extractor/zdf.py +++ b/yt_dlp/extractor/zdf.py @@ -143,7 +143,9 @@ class ZDFBaseIE(InfoExtractor): **f, 'format_id': join_nonempty(f['format_id'], is_dgs and 'dgs'), 'format_note': join_nonempty( - f_class, is_dgs and 'German Sign Language', f.get('format_note'), delim=', '), + has_video and f_class, + is_dgs and 'German Sign Language', + f.get('format_note'), delim=', '), 'preference': -2 if is_dgs else -1, 'language': f_lang, 'language_preference': (