From 116d8744b89f0e7310f63c0a91bfaacc3c9049b4 Mon Sep 17 00:00:00 2001 From: jaydee Date: Wed, 2 Oct 2024 20:07:30 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index 38dfa3f..fafe40e 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -10,7 +10,9 @@ import getopt from ffmpeg_progress_yield import FfmpegProgress from tqdm import tqdm import filedate - +def d_print(msg): + if _TEST: + print(msg) if sys.platform == "linux" or sys.platform == "linux2": # linux @@ -231,13 +233,14 @@ if _ACTION == "join": os.remove(export_name) except: pass + d_print("Running commad") 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(): # pbar.update(progress - pbar.n) cur_stat = 0 - + d_print("Running commad2") with tqdm(total=100, position=1, desc="Join") as pbar: position=0 while proc.returncode is None: