fix
This commit is contained in:
parent
0e7f1f2945
commit
b70fe6c79d
@ -63,11 +63,10 @@ class CBZUtils:
|
|||||||
else:
|
else:
|
||||||
print("文件已存在:", target_file)
|
print("文件已存在:", target_file)
|
||||||
len_chapter_imgs = len(comicInfo.getChapterImgs())
|
len_chapter_imgs = len(comicInfo.getChapterImgs())
|
||||||
if len_chapter_imgs != 0 and len_chapter_imgs != cls.zip_info(target_file):
|
if len_chapter_imgs != 0 and len_chapter_imgs != len(cls.zip_info(target_file)):
|
||||||
try:
|
try:
|
||||||
os.remove(target_file)
|
os.remove(target_file)
|
||||||
comicInfo.setProgress(comicInfo.PROGRESS_NONE)
|
comicInfo.setProgress(comicInfo.PROGRESS_NONE)
|
||||||
print("文件已删除:", target_file)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
if remove:
|
if remove:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user