mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 15:16:52 +01:00
[common] _parse_smil_subtitles: accept lang
as the subtitle language
This commit is contained in:
parent
dd565ac1ad
commit
03bc7237ad
@ -1151,7 +1151,7 @@ def _parse_smil_subtitles(self, smil, namespace=None, subtitles_lang='en'):
|
||||
}
|
||||
if type_ in SUBTITLES_TYPES:
|
||||
ext = SUBTITLES_TYPES[type_]
|
||||
lang = textstream.get('systemLanguage') or textstream.get('systemLanguageName') or subtitles_lang
|
||||
lang = textstream.get('systemLanguage') or textstream.get('systemLanguageName') or textstream.get('lang') or subtitles_lang
|
||||
subtitles.setdefault(lang, []).append({
|
||||
'url': src,
|
||||
'ext': ext,
|
||||
|
Loading…
Reference in New Issue
Block a user