diff --git a/utils/entity/RouMan.py b/utils/entity/RouMan.py index a43d3a4..1a536c5 100644 --- a/utils/entity/RouMan.py +++ b/utils/entity/RouMan.py @@ -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)