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.
This commit is contained in:
InvalidUsernameException
2025-05-27 18:29:23 +02:00
parent 4706c886c7
commit 7a33699ae2
+3 -1
View File
@@ -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': (