This commit is contained in:
caiwx86 2023-03-31 11:16:36 +08:00
parent a6a078174c
commit e09b5eff12
2 changed files with 4 additions and 3 deletions

View File

@ -54,7 +54,7 @@ class baseComic:
#存在完成配置文件 但文件不存在 将清空完成配置文件
if ci.isProgress(ci.PROGRESS_DONE) and not fu.exists(ci.getNewCBZComicChapter("file")): ci.isProgress(ci.PROGRESS_DONE,remove=True)
#不存在完成配置文件 则允许下载
if not ci.isProgress(ci.PROGRESS_DONE): cls.comicChapters(href,scramble=True,sleep=random.randint(5,15))
if not ci.isProgress(ci.PROGRESS_DONE): cls.comicChapters(href,scramble=True,sleep=random.randint(1,5))
cls.count_chapter += 1
#一本漫画下载后等待
#清空文件夹
@ -131,7 +131,7 @@ class baseComic:
download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=None,timeout=10)
equ_next = len(",".join(os.listdir(ci.getDirComicChapter())).split(".jpg"))-1 == len(list_img)
if not equ_next:
sleep_time = 3+int(repeat)*2
sleep_time = int(repeat)*2
time.sleep(sleep_time)
ntfy.sendMsg(f"下载数据(不完整,{sleep_time}秒钟后尝试第{repeat}")
repeat += 1

View File

@ -3,6 +3,7 @@ import os,re
from utils.comic.PathStr import pathStr
import json,shutil
from utils.FileUtils import dbUtils
from opencc import OpenCC
class comicInfo():
COMIC_ICON_NAME = "000"