mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-10 05:20:09 +09:00
Merge 6d60db88cd
into c5098961b0
This commit is contained in:
commit
bc86543082
@ -385,7 +385,10 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
|
|||||||
sub_filenames = []
|
sub_filenames = []
|
||||||
webm_vtt_warn = False
|
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']
|
sub_ext = sub_info['ext']
|
||||||
if ext != 'webm' or ext == 'webm' and sub_ext == 'vtt':
|
if ext != 'webm' or ext == 'webm' and sub_ext == 'vtt':
|
||||||
sub_langs.append(lang)
|
sub_langs.append(lang)
|
||||||
|
Loading…
Reference in New Issue
Block a user