This commit is contained in:
ricterzheng 2024-10-01 12:47:13 +09:00
parent a84e2c5714
commit c3e9fff491

View File

@ -89,7 +89,8 @@ class Doujinshi(object):
if options.is_cbz: if options.is_cbz:
ret_cbz = os.path.exists(f'{base_path}.cbz') or os.path.exists(f'{base_path}/{self.filename}.cbz') ret_cbz = os.path.exists(f'{base_path}.cbz') or os.path.exists(f'{base_path}/{self.filename}.cbz')
if all(filter(lambda s: s is not None, [ret_cbz, ret_pdf])): ret = list(filter(lambda s: s is not None, [ret_cbz, ret_pdf]))
if ret and all(ret):
return False return False
# doujinshi directory doesn't exist, re-download # doujinshi directory doesn't exist, re-download