From 60826b257b57caee814adf52e9eaaa792ce7d247 Mon Sep 17 00:00:00 2001 From: Zen <46526140+master-of-zen@users.noreply.github.com> Date: Sat, 18 Jan 2020 16:51:53 +0200 Subject: [PATCH] Fixed old bug with progress bar --- av1an.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/av1an.py b/av1an.py index 680b750..164146e 100755 --- a/av1an.py +++ b/av1an.py @@ -353,12 +353,11 @@ class Av1an: print(f'Starting encoding with {self.workers} workers. \nParameters: {self.encoding_params}\nEncoding..') # Progress bar - bar = ProgressBar(len(vid_queue)) + bar = ProgressBar(len(files)) pool = Pool(self.workers) for i, _ in enumerate(pool.imap_unordered(self.encode, commands), 1): bar.tick() - bar.tick() self.concatenate_video(self.args.file_path)