This commit is contained in:
caiwx86 2025-02-04 18:32:12 +08:00
parent c594b22368
commit d8be5a834d

View File

@ -264,8 +264,9 @@ class MangaDownloader:
return False return False
class CBZUtils: class CBZUtils:
def __init__(self, cbz_path: Path): def __init__(self, cbz_path: Path = None):
self.cbz_path = cbz_path if not cbz_path is None:
self.cbz_path = cbz_path
def get_page_count(self): def get_page_count(self):
return self._comic_info_xml_page_count(self.cbz_path) return self._comic_info_xml_page_count(self.cbz_path)