From 9fd04a29e129d43849951265f507ac8a435a55f0 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 24 Sep 2024 19:21:09 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index 6ab3014..115ae64 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -128,12 +128,7 @@ if _ACTION == "join": f.close() print(final_size) print(_FULL_PATH) - with tqdm(total=100, position=1, desc="Join") as pbar: - while True: - pbar.update(1) - #file_stats = os.stat(export_name) - #print(file_stats.st_size ) - time.sleep(1) + if _TEST: input(" ???? ") # if _FLIP: @@ -180,8 +175,16 @@ if _ACTION == "join": # with tqdm(total=100, position=1, desc="Convert") as pbar: # for progress in ff.run_command_with_progress(): # pbar.update(progress - pbar.n) + with tqdm(total=100, position=1, desc="Join") as pbar: + for progress in ff.run_command_with_progress(): + pbar.update(1) + try: + file_stats = os.stat(export_name) + print(file_stats.st_size ) + except: + pass - file_stats = os.stat(file_name) + time.sleep(1) # get the output print(ff.stderr)