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