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: