From 32b364b6f5133ed85d7ac282fdb83c3c75eb7a62 Mon Sep 17 00:00:00 2001 From: "ladislav.dusa" Date: Wed, 25 Sep 2024 18:07:30 +0200 Subject: [PATCH] rebase --- handle_imported_video.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handle_imported_video.py b/handle_imported_video.py index 2becf98..6d9add3 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -184,6 +184,10 @@ if _ACTION == "join": #print(myCmd) print(f"Joining {len(parts)} files to {export_name} in {_DAY_DIR}...") + try: + os.remove(export_name) + except: + pass proc = subprocess.Popen(myCmd,stdout=subprocess.DEVNULL,stderr=subprocess.STDOUT) # with tqdm(total=100, position=1, desc="Convert") as pbar: # for progress in ff.run_command_with_progress():