[youtube] Label original auto-subs

Closes #2655
pull/2698/head
pukkandan 3 years ago
parent 3f047fc406
commit 0c8d9e5fec
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -3408,6 +3408,9 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
trans_name += format_field(lang_name, template=' from %s')
process_language(
automatic_captions, base_url, trans_code, trans_name, {'tlang': trans_code})
if lang_code == f'a-{trans_code}':
process_language(
automatic_captions, base_url, f'{trans_code}-orig', f'{trans_name} (Original)', {'tlang': trans_code})
info['automatic_captions'] = automatic_captions
info['subtitles'] = subtitles

Loading…
Cancel
Save