From faa9a30e8bbdad2ce76ca8d26832c1e7b0e8d52f Mon Sep 17 00:00:00 2001 From: xenofem Date: Tue, 23 Apr 2024 22:19:06 -0400 Subject: [PATCH 1/2] omake --- dlibrary/dlibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index ebeb216..3a92163 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -66,7 +66,7 @@ FXLESS_REGEX = re.compile('効果音(な|無)し', re.I) FRONT_COVER_REGEX = re.compile('(? Date: Tue, 23 Apr 2024 22:25:10 -0400 Subject: [PATCH 2/2] 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