This commit is contained in:
caiwx86 2023-04-05 22:25:49 +08:00
parent f3ee7bccc2
commit 6e88c7277d
2 changed files with 3 additions and 6 deletions

View File

@ -21,10 +21,8 @@ class baseComic:
@classmethod
def updateComics(cls,chapters_xpath):
comics = ListComic.getListComicsLinksUpdateAt()
try:
(book_name,comic_href,updated) = [comics[0],comics[1],comics[2]]
except:
return False
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

View File

@ -37,5 +37,4 @@ class comicEntity:
@classmethod
def start(cls,url):
is_next = cls.downladsComcis(url)
while is_next: cls.oneComic()
while cls.downladsComcis(url): cls.oneComic()