[YouTube] Also get original of translated automatic captions

This commit is contained in:
dirkf 2025-03-25 21:41:15 +00:00
parent 2239ee7965
commit 7dca08eff0

View File

@ -2596,6 +2596,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
subtitles, base_url, lang_code, {})
continue
automatic_captions = {}
process_language(
automatic_captions, base_url, lang_code, {})
for translation_language in traverse_obj(pctr, (
Ellipsis, 'translationLanguages', lambda _, v: v.get('languageCode'))):
translation_language_code = translation_language['languageCode']