This commit is contained in:
caiwx86 2023-04-05 15:21:38 +08:00
parent 190121dcfb
commit 9fb7cd3dad
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class baseComic:
#添加 #添加
Comic.setComicName(book_name) Comic.setComicName(book_name)
Comic.setUpdateAt(update_at) Comic.setUpdateAt(update_at)
if not ciUtils.isUpdateComic(book_name): if not ciUtils.isUpdateComic():
ntfy.sendMsg(f"开始下载 漫画:{book_name}",alert=True) ntfy.sendMsg(f"开始下载 漫画:{book_name}",alert=True)
Comic.setCurrentDownLink(comic_href) Comic.setCurrentDownLink(comic_href)
else: else:

View File

@ -183,9 +183,9 @@ class ComicInfoUtils:
db.set(Comic.getOriginComicName(), update_at, "update") db.set(Comic.getOriginComicName(), update_at, "update")
@classmethod @classmethod
def isUpdateComic(cls,comic_name,update_at=None): def isUpdateComic(cls,update_at=None):
if update_at == None: update_at = Comic.getUpdateAt() if update_at == None: update_at = Comic.getUpdateAt()
return db.query(comic_name, update_at,"update") return db.query(Comic.getOriginComicName(), update_at,"update")
@classmethod @classmethod
def comicChapterDownload(cls,imgs,names): def comicChapterDownload(cls,imgs,names):