diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-30 05:17:45 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-11-30 05:18:18 +0530 |
commit | 71eb82d1b2864927b62e0600c41b8b9db4071218 (patch) | |
tree | 8ab5aa884018d9168dd3a7efc3a90529eb7c4405 | |
parent | a9d069f5b8540f15caaf696bc39ce6a969f8b11c (diff) | |
download | hypervideo-pre-71eb82d1b2864927b62e0600c41b8b9db4071218.tar.lz hypervideo-pre-71eb82d1b2864927b62e0600c41b8b9db4071218.tar.xz hypervideo-pre-71eb82d1b2864927b62e0600c41b8b9db4071218.zip |
[extractor/youtube] Subtitles cannot be translated to `und`
Closes #5674
-rw-r--r-- | yt_dlp/extractor/youtube.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class YoutubeIE(YoutubeBaseInfoExtractor): 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}' |