fix
This commit is contained in:
+4
-6
@@ -28,19 +28,16 @@ class comicEntity:
|
||||
comic_href = base_url+"/books/"+book_id
|
||||
comicInfo.setUpdateAt(updated)
|
||||
comicInfo.setComicName(book_name)
|
||||
href = baseComic.downladsComcis(book_name=book_name,comic_href=comic_href,updated=updated)
|
||||
if href != None:
|
||||
cls.oneComic(href)
|
||||
comicInfo.updateComicDate()
|
||||
cls.oneComic(baseComic.comics(book_name=book_name,comic_href=comic_href,updated=updated))
|
||||
|
||||
@classmethod
|
||||
def oneComic(cls,c_url,sleep=None):
|
||||
if c_url == None: return None
|
||||
#漫画名
|
||||
title = htmlUtils.xpathData('//div[@class="col"]/h5/text()',url=c_url,num=0,update=True)
|
||||
#别名
|
||||
alias = htmlUtils.xpathData('//span[contains(@class,"bookid_alias")]/text()',num=1)
|
||||
icon = htmlUtils.xpathData('//img[@class="img-thumbnail"]/@src',num=0)
|
||||
|
||||
author = htmlUtils.xpathData('//div[contains(@class,"bookid_bookInfo")]/p[1]/text()',num=1)
|
||||
tags = htmlUtils.xpathData('//div[contains(@class,"bookid_bookInfo")]/p[3]/b/text()',num=0)
|
||||
action = htmlUtils.xpathData('//div[contains(@class,"bookid_bookInfo")]/p[2]/text()',num=1)
|
||||
@@ -51,4 +48,5 @@ 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="韩漫")
|
||||
alias=alias,genre="韩漫")
|
||||
comicInfo.updateComicDate()
|
||||
Reference in New Issue
Block a user