1
0
Fork 0

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

This commit is contained in:
pukkandan 2022-03-27 14:04:20 +05:30
commit 18e4940825
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
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.