This commit is contained in:
cwx 2022-12-13 00:40:48 +08:00
parent 403ca9fbf7
commit c80b9e378d

View File

@ -32,10 +32,12 @@ class comicEntity:
comicHref = baseUrl+"/books/"+book_id
random_int = random.randint(5,20)
comicInfo.setComicName(book_name)
#dirConfComic = comicInfo.getDirConfComic()
#if not os.path.exists(dirConfComic):
ntfy.sendMsg(f"{random_int}秒后开始下载 漫画:{book_name}")
time.sleep(random_int)
dirConfComic = comicInfo.getDirConfComic()
if not os.path.exists(dirConfComic):
ntfy.sendMsg(f"{random_int}秒后开始下载 漫画:{book_name}")
time.sleep(random_int)
else:
ntfy.sendMsg(f"已存在 漫画:{book_name}")
cls.oneComic(comicHref, random.uniform(0,3))
print(books)