mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-27 04:26:50 +01:00
[postprocessor/ffmpeg] embed subtitles in --sub-lang order
This commit is contained in:
parent
a803582717
commit
6d60db88cd
@ -392,7 +392,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)
|
||||
|
Loading…
Reference in New Issue
Block a user