This commit is contained in:
cwx committed 2023-04-05 22:25:49 +08:00
1 parent f3ee7bccc2
commit 6e88c7277d
2 files changed
+3 -6

No files matched your search

+2 -4
View File
@@ -21,10 +21,8 @@ class baseComic:
@classmethod @classmethod
def updateComics(cls,chapters_xpath): def updateComics(cls,chapters_xpath):
comics = ListComic.getListComicsLinksUpdateAt() comics = ListComic.getListComicsLinksUpdateAt()
try: 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]]
except:
return False
cls.updateOneComic(book_name,comic_href,updated,chapters_xpath) cls.updateOneComic(book_name,comic_href,updated,chapters_xpath)
return True return True
+1 -2
View File
@@ -37,5 +37,4 @@ class comicEntity:
@classmethod @classmethod
def start(cls,url): def start(cls,url):
is_next = cls.downladsComcis(url) while cls.downladsComcis(url): cls.oneComic()
while is_next: cls.oneComic()