[youtube] Label original auto-subs

Closes #2655
This commit is contained in:
pukkandan 2022-02-12 01:50:25 +05:30
parent 3f047fc406
commit 0c8d9e5fec
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -3408,6 +3408,9 @@ def process_language(container, base_url, lang_code, sub_name, query):
trans_name += format_field(lang_name, template=' from %s') trans_name += format_field(lang_name, template=' from %s')
process_language( process_language(
automatic_captions, base_url, trans_code, trans_name, {'tlang': trans_code}) 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['automatic_captions'] = automatic_captions
info['subtitles'] = subtitles info['subtitles'] = subtitles