fix
This commit is contained in:
parent
4f4e046850
commit
55c061a48b
@ -124,6 +124,19 @@ class CBZUtils:
|
|||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def zip_info(cls,path,filter=False):
|
||||||
|
result = None
|
||||||
|
try:
|
||||||
|
zip_file = ZipFile(path)
|
||||||
|
result = zip_file.namelist()
|
||||||
|
if filter:
|
||||||
|
result.remove(comicInfo.COMIC_ICON_NAME+".jpg")
|
||||||
|
result.remove(comicInfo.COMIC_INFO_XML)
|
||||||
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
|
return result
|
||||||
|
|
||||||
class verUtils:
|
class verUtils:
|
||||||
@classmethod
|
@classmethod
|
||||||
def verNextCBZ(cls,list_img):
|
def verNextCBZ(cls,list_img):
|
||||||
@ -141,7 +154,7 @@ class verUtils:
|
|||||||
else:
|
else:
|
||||||
ntfy.sendMsg(f"{comicInfo.getComicName()} {comicInfo.getChapter()} 数据不完整,尝试删除配置CBZ文件后重试")
|
ntfy.sendMsg(f"{comicInfo.getComicName()} {comicInfo.getChapter()} 数据不完整,尝试删除配置CBZ文件后重试")
|
||||||
try:
|
try:
|
||||||
if cbz_size < len(list_img) or os.path.getsize(cbz_path) < 300000:
|
if cbz_size < len(list_img) or os.path.getsize(cbz_path) < 3000:
|
||||||
ntfy.sendMsg(f"删除 {cbz_path}")
|
ntfy.sendMsg(f"删除 {cbz_path}")
|
||||||
os.remove(cbz_path)
|
os.remove(cbz_path)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user