From f4da579b0953c33663595f60e14e0f25d72a83a3 Mon Sep 17 00:00:00 2001 From: jaydee Date: Tue, 24 Sep 2024 19:46:57 +0200 Subject: [PATCH] bitwarden --- handle_imported_video.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/handle_imported_video.py b/handle_imported_video.py index 03b14e3..d74065f 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -124,7 +124,7 @@ if _ACTION == "join": for p in parts: f.write(f"file '{p}'\n") file_stats = os.stat(p) - final_size += file_stats.st_size / (1024 * 1024) + final_size += file_stats.st_size f.close() print(final_size) print(_FULL_PATH) @@ -178,15 +178,18 @@ if _ACTION == "join": with tqdm(total=100, position=1, desc="Join") as pbar: while True: - #pbar.update(1) + #pbar.update() try: file_stats = os.stat(export_name) - print(file_stats.st_size ) + cur_size = file_stats.st_size + final_size + cur_stat = (cur_size / final_size) * 100 + print(cur_stat) pass except: pass - time.sleep(1) + time.sleep(3) # get the output print(ff.stderr)