mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
[EmbedSubtitle] Continue even if some files are missing
This commit is contained in:
parent
e88dabb35e
commit
8e25d624df
1 changed files with 3 additions and 0 deletions
|
@ -478,6 +478,9 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor):
|
|||
mp4_ass_warn = False
|
||||
|
||||
for lang, sub_info in subtitles.items():
|
||||
if not os.path.exists(information.get('filepath', '')):
|
||||
self.report_warning(f'Skipping embedding {lang} subtitle because the file is missing')
|
||||
continue
|
||||
sub_ext = sub_info['ext']
|
||||
if sub_ext == 'json':
|
||||
self.report_warning('JSON subtitles cannot be embedded')
|
||||
|
|
Loading…
Reference in a new issue