From 0f5fd54cf8f5623911782fbdbc17203be6f589dc Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 24 Sep 2024 20:12:54 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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: