fix
This commit is contained in:
1 parent
403ca9fbf7
commit
c80b9e378d
1 file changed
+6
-4
@@ -32,10 +32,12 @@ class comicEntity:
|
|||||||
comicHref = baseUrl+"/books/"+book_id
|
comicHref = baseUrl+"/books/"+book_id
|
||||||
random_int = random.randint(5,20)
|
random_int = random.randint(5,20)
|
||||||
comicInfo.setComicName(book_name)
|
comicInfo.setComicName(book_name)
|
||||||
#dirConfComic = comicInfo.getDirConfComic()
|
dirConfComic = comicInfo.getDirConfComic()
|
||||||
#if not os.path.exists(dirConfComic):
|
if not os.path.exists(dirConfComic):
|
||||||
ntfy.sendMsg(f"{random_int}秒后开始下载 漫画:{book_name}")
|
ntfy.sendMsg(f"{random_int}秒后开始下载 漫画:{book_name}")
|
||||||
time.sleep(random_int)
|
time.sleep(random_int)
|
||||||
|
else:
|
||||||
|
ntfy.sendMsg(f"已存在 漫画:{book_name}")
|
||||||
cls.oneComic(comicHref, random.uniform(0,3))
|
cls.oneComic(comicHref, random.uniform(0,3))
|
||||||
|
|
||||||
print(books)
|
print(books)
|
||||||
|
|||||||
Reference in new issue
Block a user