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