This commit is contained in:
Deleted user 2024-05-11 04:40:01 +08:00 committed by GitHub
commit f8adc7f246
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -385,7 +385,10 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
sub_filenames = []
webm_vtt_warn = False
for lang, sub_info in subtitles.items():
for lang in (self._downloader.params.get('subtitleslangs') or subtitles):
sub_info = subtitles.get(lang)
if not sub_info:
continue
sub_ext = sub_info['ext']
if ext != 'webm' or ext == 'webm' and sub_ext == 'vtt':
sub_langs.append(lang)