This commit is contained in:
cwx committed 2023-04-05 22:29:56 +08:00
1 parent 6e88c7277d
commit de988e4132
1 file changed
+3 -2
+3 -2
View File
@@ -23,8 +23,7 @@ class baseComic:
comics = ListComic.getListComicsLinksUpdateAt() comics = ListComic.getListComicsLinksUpdateAt()
if comics == None: return False if comics == None: return False
(book_name,comic_href,updated) = [comics[0],comics[1],comics[2]] (book_name,comic_href,updated) = [comics[0],comics[1],comics[2]]
cls.updateOneComic(book_name,comic_href,updated,chapters_xpath) return cls.updateOneComic(book_name,comic_href,updated,chapters_xpath)
return True
@classmethod @classmethod
def updateOneComic(cls,book_name,comic_href,update_at,chapters_xpath): def updateOneComic(cls,book_name,comic_href,update_at,chapters_xpath):
@@ -37,8 +36,10 @@ class baseComic:
if not ciUtils.isUpdateComic(): 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)
return True
else: else:
ntfy.sendMsg(f"{book_name} 已是最新",alert=True) ntfy.sendMsg(f"{book_name} 已是最新",alert=True)
return False
#chapters = htmlUtils.xpathData(chapters_xpath,url=comic_href,update=False) #chapters = htmlUtils.xpathData(chapters_xpath,url=comic_href,update=False)
#chapter_index = 1 #chapter_index = 1
#for chapter in chapters: #for chapter in chapters: