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)