fix
This commit is contained in:
parent
62006db439
commit
4f4e046850
@ -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)
|
||||||
|
|||||||
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user