diff --git a/common/BaseComicEntity.py b/common/BaseComicEntity.py index 840fe16..1d0ba0c 100644 --- a/common/BaseComicEntity.py +++ b/common/BaseComicEntity.py @@ -23,8 +23,7 @@ class baseComic: comics = ListComic.getListComicsLinksUpdateAt() if comics == None: return False (book_name,comic_href,updated) = [comics[0],comics[1],comics[2]] - cls.updateOneComic(book_name,comic_href,updated,chapters_xpath) - return True + return cls.updateOneComic(book_name,comic_href,updated,chapters_xpath) @classmethod def updateOneComic(cls,book_name,comic_href,update_at,chapters_xpath): @@ -37,8 +36,10 @@ class baseComic: if not ciUtils.isUpdateComic(): ntfy.sendMsg(f"开始下载 漫画:{book_name}",alert=True) Comic.setCurrentDownLink(comic_href) + return True else: ntfy.sendMsg(f"{book_name} 已是最新",alert=True) + return False #chapters = htmlUtils.xpathData(chapters_xpath,url=comic_href,update=False) #chapter_index = 1 #for chapter in chapters: