From d8be5a834d530d8314751f973236e0a5418dd04b Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Tue, 4 Feb 2025 18:32:12 +0800 Subject: [PATCH] fix --- src/common/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/common/utils.py b/src/common/utils.py index 5db9944..9d46e40 100644 --- a/src/common/utils.py +++ b/src/common/utils.py @@ -264,8 +264,9 @@ class MangaDownloader: return False class CBZUtils: - def __init__(self, cbz_path: Path): - self.cbz_path = cbz_path + def __init__(self, cbz_path: Path = None): + if not cbz_path is None: + self.cbz_path = cbz_path def get_page_count(self): return self._comic_info_xml_page_count(self.cbz_path)