fix
This commit is contained in:
1 parent
8a07121244
commit
226ca3ef33
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -28,10 +28,10 @@ class comicEntity:
|
|||||||
comic_href = base_url+"/books/"+book_id
|
comic_href = base_url+"/books/"+book_id
|
||||||
comicInfo.setUpdateAt(updated)
|
comicInfo.setUpdateAt(updated)
|
||||||
comicInfo.setComicName(book_name)
|
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
|
@classmethod
|
||||||
def oneComic(cls,c_url,sleep=None):
|
def oneComic(cls,c_url,sleep=None,date=None):
|
||||||
if c_url == None: return None
|
if c_url == None: return None
|
||||||
#漫画名
|
#漫画名
|
||||||
title = htmlUtils.xpathData('//div[@class="col"]/h5/text()',url=c_url,num=0,update=True)
|
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,
|
baseComic.oneComic(url=c_url,title=title,author=author,
|
||||||
icon=icon,tags=tags,dep=dep,chapters=chapters,chapter_href=chapter_href,
|
icon=icon,tags=tags,dep=dep,chapters=chapters,chapter_href=chapter_href,
|
||||||
alias=alias,genre="韩漫")
|
alias=alias,genre="韩漫")
|
||||||
comicInfo.updateComicDate()
|
comicInfo.updateComicDate(date=date)
|
||||||
@@ -421,7 +421,7 @@ class comicInfo():
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def updateComicDate(cls,date=None):
|
def updateComicDate(cls,date=None):
|
||||||
update_at = cls.str_update_at
|
update_at = cls.getUpdateAt()
|
||||||
if date != None:
|
if date != None:
|
||||||
update_at = date
|
update_at = date
|
||||||
dbUtils.setComic(cls.str_comic_name, update_at, "update")
|
dbUtils.setComic(cls.str_comic_name, update_at, "update")
|
||||||
|
|||||||
Reference in new issue
Block a user