diff --git a/handle_imported_video.py b/handle_imported_video.py index cadc770..07b224d 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -177,7 +177,7 @@ if _ACTION == "join": # pbar.update(progress - pbar.n) with tqdm(total=100, position=1, desc="Join") as pbar: position=0 - while True: + while proc.returncode is None: #pbar.update() try: @@ -188,14 +188,11 @@ if _ACTION == "join": pbar.update(int(cur_stat) - position) position = int(cur_stat) - print(proc.returncode) - if cur_stat == 100: - break except: pass time.sleep(3) - + pbar.update(1) # get the output status = 0 if status == 0: