From 287686da78be1707b4b43e33a014ee73dc7487f2 Mon Sep 17 00:00:00 2001 From: xenofem Date: Tue, 23 Apr 2024 22:25:10 -0400 Subject: [PATCH] fix pdf progress meter when it's not the first collation item --- dlibrary/dlibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index 3a92163..3e8b429 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -552,7 +552,7 @@ class Collator: file_path = self.dest / f'{idx:04d}.{image["ext"]}' with open(file_path, 'wb') as f: f.write(image["image"]) - count_progress(idx, len(image_extractors), 'pages collated') + count_progress(idx - self.index, len(image_extractors), 'pages collated') self.index += pdf.page_count return True