This commit is contained in:
caiwx86 2023-02-14 06:35:40 +08:00
parent 8a07121244
commit 226ca3ef33
2 changed files with 4 additions and 4 deletions

View File

@ -28,10 +28,10 @@ class comicEntity:
comic_href = base_url+"/books/"+book_id
comicInfo.setUpdateAt(updated)
comicInfo.setComicName(book_name)
cls.oneComic(baseComic.comics(book_name=book_name,comic_href=comic_href,updated=updated))
cls.oneComic(baseComic.comics(book_name=book_name,comic_href=comic_href,updated=updated),date=updated)
@classmethod
def oneComic(cls,c_url,sleep=None):
def oneComic(cls,c_url,sleep=None,date=None):
if c_url == None: return None
#漫画名
title = htmlUtils.xpathData('//div[@class="col"]/h5/text()',url=c_url,num=0,update=True)
@ -49,4 +49,4 @@ class comicEntity:
baseComic.oneComic(url=c_url,title=title,author=author,
icon=icon,tags=tags,dep=dep,chapters=chapters,chapter_href=chapter_href,
alias=alias,genre="韩漫")
comicInfo.updateComicDate()
comicInfo.updateComicDate(date=date)

View File

@ -421,7 +421,7 @@ class comicInfo():
@classmethod
def updateComicDate(cls,date=None):
update_at = cls.str_update_at
update_at = cls.getUpdateAt()
if date != None:
update_at = date
dbUtils.setComic(cls.str_comic_name, update_at, "update")