fix
This commit is contained in:
parent
e1423c4fbf
commit
9165f897ed
@ -100,12 +100,10 @@ class CBZUtils:
|
||||
for file in fz.namelist():
|
||||
if file.endswith(".jpg"):
|
||||
data = fz.read(file)
|
||||
time.sleep(0.1)
|
||||
is_file = fileUtils.ver_file(data,"image")
|
||||
if not is_file and os.path.exists(filepath):
|
||||
if len(data) < 500 and os.path.exists(filepath):
|
||||
os.remove(filepath)
|
||||
print(f"数据不完整,已删除:{filepath}")
|
||||
if is_file and cls.compareFileDate(filepath):
|
||||
if cls.compareFileDate(filepath):
|
||||
os.utime(filepath)
|
||||
print(f"已更新文件时间 {filepath}")
|
||||
if os.path.exists(unpack_dir):
|
||||
|
||||
@ -39,7 +39,7 @@ class baseComic:
|
||||
comicInfo.setChapterName(chapter)
|
||||
cbz_path = comicInfo.getNewCBZComicChapter("file")
|
||||
comicInfo.getNewIconComicChapter()
|
||||
#CBZUtils.replaceZip(cbz_path)
|
||||
CBZUtils.replaceZip(cbz_path)
|
||||
if comicInfo.nextExistsGetPath("done_") and not os.path.exists(cbz_path):
|
||||
comicInfo.nextExistsGetPath("done_",remove=True)
|
||||
if not os.path.exists(cbz_path):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user