fix
This commit is contained in:
parent
403ca9fbf7
commit
c80b9e378d
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user