mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-27 21:25:28 +00:00
f_class
Authored by: bashonly
This commit is contained in:
parent
680a03a313
commit
567ad43d26
@ -130,12 +130,12 @@ class ZDFBaseIE(InfoExtractor):
|
|||||||
'format_id': join_nonempty('http', stream.get('type')),
|
'format_id': join_nonempty('http', stream.get('type')),
|
||||||
'tbr': int_or_none(self._search_regex(r'_(\d+)k_', format_url, 'tbr', default=None)),
|
'tbr': int_or_none(self._search_regex(r'_(\d+)k_', format_url, 'tbr', default=None)),
|
||||||
}]
|
}]
|
||||||
|
f_class = variant.get('class')
|
||||||
formats.extend(merge_dicts(f, {
|
formats.extend(merge_dicts(f, {
|
||||||
'format_note': join_nonempty(
|
'format_note': join_nonempty(f_class, is_dgs and 'German Sign Language', delim=', '),
|
||||||
variant.get('class'), is_dgs and 'German Sign Language', delim=', '),
|
|
||||||
'language': variant.get('language'),
|
'language': variant.get('language'),
|
||||||
'preference': -2 if is_dgs else -1,
|
'preference': -2 if is_dgs else -1,
|
||||||
'language_preference': 10 if variant.get('class') == 'main' else -10 if variant.get('class') == 'ad' else -1,
|
'language_preference': 10 if f_class == 'main' else -10 if f_class == 'ad' else -1,
|
||||||
}) for f in fmts)
|
}) for f in fmts)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user