diff --git a/handle_imported_video.py b/handle_imported_video.py index 2c5a938..705e057 100644 --- a/handle_imported_video.py +++ b/handle_imported_video.py @@ -176,6 +176,7 @@ if _ACTION == "join": # for progress in ff.run_command_with_progress(): # pbar.update(progress - pbar.n) with tqdm(total=100, position=1, desc="Join") as pbar: + position=1 while True: #pbar.update() @@ -184,8 +185,9 @@ if _ACTION == "join": cur_size = file_stats.st_size final_size cur_stat = (cur_size / final_size) * 100 - print(int(cur_stat), pbar.position) - pass + + pbar.update(cur_stat - position) + position = cur_stat except: pass