This commit is contained in:
caiwx86 2023-02-14 03:04:53 +08:00
parent 62006db439
commit 4f4e046850
2 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,6 @@ class verUtils:
print(f"存在CBZ文件{zipfile_path},解压中") print(f"存在CBZ文件{zipfile_path},解压中")
zip_file = ZipFile(zipfile_path) zip_file = ZipFile(zipfile_path)
#CBZ中文件数量剔除ComicInfo.xml #CBZ中文件数量剔除ComicInfo.xml
info_list = zip_file.namelist()
if len(filesname) == len(zip_file.namelist())-1: if len(filesname) == len(zip_file.namelist())-1:
unzip_path = comicInfo.getDirComicChapter() unzip_path = comicInfo.getDirComicChapter()
zip_file.extractall(unzip_path) zip_file.extractall(unzip_path)

View File

@ -213,6 +213,7 @@ class fileUtils:
try: try:
img = Image.open(file_path) img = Image.open(file_path)
img.verify() img.verify()
img.close()
print(f"{file_path} 类型为type:{type} size: {file_size}") print(f"{file_path} 类型为type:{type} size: {file_size}")
return True return True
except: except: