diff --git a/entity/RouMan.py b/entity/RouMan.py index d6547cb..7584944 100644 --- a/entity/RouMan.py +++ b/entity/RouMan.py @@ -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() \ No newline at end of file + comicInfo.updateComicDate(date=date) \ No newline at end of file diff --git a/utils/comic/ComicInfo.py b/utils/comic/ComicInfo.py index a6d6226..1863fc3 100644 --- a/utils/comic/ComicInfo.py +++ b/utils/comic/ComicInfo.py @@ -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")