From: pukkandan Date: Tue, 29 Nov 2022 23:47:45 +0000 (+0530) Subject: [extractor/youtube] Subtitles cannot be translated to `und` X-Git-Tag: 2023.01.02~95 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/71eb82d1b2864927b62e0600c41b8b9db4071218 [extractor/youtube] Subtitles cannot be translated to `und` Closes #5674 --- diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index 79d082d0b..c6c89915b 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -4085,7 +4085,7 @@ def process_language(container, base_url, lang_code, sub_name, query): if not trans_code: continue orig_trans_code = trans_code - if caption_track.get('kind') != 'asr': + if caption_track.get('kind') != 'asr' and trans_code != 'und': if not get_translated_subs: continue trans_code += f'-{lang_code}'