From 0c8d9e5fec440ab423e15b109a609af5d673887a Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sat, 12 Feb 2022 01:50:25 +0530 Subject: [PATCH] [youtube] Label original auto-subs Closes #2655 --- yt_dlp/extractor/youtube.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 61804e2af..a166e98db 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -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