This commit is contained in:
cwx committed 2022-12-11 22:30:42 +08:00
1 parent ec89cb7a01
commit e9efeb99c6
1 file changed
+6 -3
+6 -3
View File
@@ -30,9 +30,12 @@ class comicEntity:
updatedAt = book.get("updatedAt") updatedAt = book.get("updatedAt")
comicHref = baseUrl+"/books/"+book_id comicHref = baseUrl+"/books/"+book_id
random_int = random.uniform(5,20) random_int = random.uniform(5,20)
print(f"{random_int}秒后开始下载 漫画:{book_name}") comicInfo.setComicName(book_name)
time.sleep(random_int) dirConfComic = comicInfo.getDirConfComic()
cls.oneComic(comicHref, random.uniform(0,3)) if not os.path.exists(dirConfComic):
print(f"{random_int}秒后开始下载 漫画:{book_name}")
time.sleep(random_int)
cls.oneComic(comicHref, random.uniform(0,3))
print(books) print(books)
#for comicHref in comicsHref: #for comicHref in comicsHref: