[extractor/youtube] Subtitles cannot be translated to `und`

Closes #5674
pull/5681/head
pukkandan 1 year ago
parent a9d069f5b8
commit 71eb82d1b2
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -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}'

Loading…
Cancel
Save