From 4e0b456a4aadc1406616acbadbc979903d3a0d8a Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Wed, 31 May 2023 19:37:28 +0530 Subject: [PATCH] fix path in windows --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index cc1e9b0..8b3e231 100644 --- a/core/utils.py +++ b/core/utils.py @@ -50,7 +50,7 @@ def add_audio(output_dir, target_path, video, keep_frames, output_file): save_to_ff, output_dir_ff = path(save_to), path(output_dir) os.system(f'ffmpeg -i "{output_dir_ff}{sep}output.mp4" -i "{output_dir_ff}{sep}{video}" -c:v copy -map 0:v:0 -map 1:a:0 -y "{save_to_ff}"') if not os.path.isfile(save_to): - shutil.move(f'{output_dir}{sep}output.mp4', save_to) + shutil.move(output_dir + "/output.mp4", save_to) if not keep_frames: shutil.rmtree(output_dir)