fix(convert): correctly quote paths when using ffmpeg on Windows

With the current version of ffmpeg on Windows, the list file must enclosed by single quotes.
This commit is contained in:
yang-fighter
2023-01-01 12:12:45 -06:00
committed by GitHub
parent 1e150bbb84
commit 1ff2330ff2

View File

@ -206,7 +206,7 @@ class PresentationConfig(BaseModel): # type: ignore
dest_path = merge_basenames(files)
f = tempfile.NamedTemporaryFile(mode="w", delete=False)
f.writelines(f"file {os.path.abspath(path)}\n" for path in files)
f.writelines(f"file '{os.path.abspath(path)}'\n" for path in files)
f.close()
command = [