Compare commits

...

2 Commits

Author SHA1 Message Date
Deleted user
710fd12f56
Merge 6d60db88cd into e1b3fa242c 2024-07-28 01:27:58 +09:00
kikuyan
6d60db88cd [postprocessor/ffmpeg] embed subtitles in --sub-lang order 2021-08-03 09:16:51 +09:00

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)