diff --git a/utils/entity/RouMan.py b/utils/entity/RouMan.py index d36d2c0..362f01d 100644 --- a/utils/entity/RouMan.py +++ b/utils/entity/RouMan.py @@ -30,9 +30,12 @@ class comicEntity: updatedAt = book.get("updatedAt") comicHref = baseUrl+"/books/"+book_id random_int = random.uniform(5,20) - print(f"{random_int}秒后开始下载 漫画:{book_name}") - time.sleep(random_int) - cls.oneComic(comicHref, random.uniform(0,3)) + comicInfo.setComicName(book_name) + dirConfComic = comicInfo.getDirConfComic() + 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) #for comicHref in comicsHref: