1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-31 22:55:18 +00:00

[youtube] Add extractor-arg to skip auto-translated subs

This commit is contained in:
pukkandan
2022-03-27 14:04:20 +05:30
parent c0b6e5c74d
commit 18e4940825
2 changed files with 3 additions and 1 deletions

View File

@@ -3493,6 +3493,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
if not trans_code:
continue
if caption_track.get('kind') != 'asr':
if 'translated_subs' in self._configuration_arg('skip'):
continue
trans_code += f'-{lang_code}'
trans_name += format_field(lang_name, template=' from %s')
# Add an "-orig" label to the original language so that it can be distinguished.