From 952f4d44fb08a1257d8c2d61d544f1653f7b6388 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Thu, 6 Apr 2023 20:11:31 +0800 Subject: [PATCH] fix --- common/BaseComicEntity.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/BaseComicEntity.py b/common/BaseComicEntity.py index 8d71412..9bf9232 100644 --- a/common/BaseComicEntity.py +++ b/common/BaseComicEntity.py @@ -136,13 +136,14 @@ class baseComic: ci.writeJson() #验证数据是已存在且是否完整 is_next = CBZUtils.isVerCBZComic() + is_update_old = CBZUtils.isUpdateOldCBZ() #不存在ComicInfo.xml则生成 ci.writeComicInfoXML() #图标 - if is_next: + if is_next and not is_update_old: downloadUtils.downQueueClear() + ComicPath.TIME_SLEEP = 0.5 else: - CBZUtils.isUpdateOldCBZ() ComicPath.TIME_SLEEP = random.randint(5,15) downloadUtils.putDownImageUrlDirFile(Comic.getIcon(),ComicPath.getDirConfComic(),ComicPath.COMIC_ICON_FILE_NAME) downloadUtils.start_downloads(timeout=8)