fix
This commit is contained in:
1 parent
9ec2963a61
commit
e235c51e03
1 file changed
+2
-2
@@ -56,7 +56,7 @@ class comicEntity:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def oneComic(cls,c_url,sleep=None):
|
def oneComic(cls,c_url,sleep=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)
|
||||||
#别名
|
#别名
|
||||||
alias = htmlUtils.xpathData('//span[contains(@class,"bookid_alias")]/text()',num=1)
|
alias = htmlUtils.xpathData('//span[contains(@class,"bookid_alias")]/text()',num=1)
|
||||||
icon = htmlUtils.xpathData('//img[@class="img-thumbnail"]/@src',num=0)
|
icon = htmlUtils.xpathData('//img[@class="img-thumbnail"]/@src',num=0)
|
||||||
@@ -67,7 +67,7 @@ class comicEntity:
|
|||||||
dep = htmlUtils.xpathData('//div[contains(@class,"bookid_bookInfo")]/p[4]/text()',num=1)
|
dep = htmlUtils.xpathData('//div[contains(@class,"bookid_bookInfo")]/p[4]/text()',num=1)
|
||||||
update_date = htmlUtils.xpathData('//div[contains(@class,"bookid_bookInfo")]/p[5]/small/text()',num=1)
|
update_date = htmlUtils.xpathData('//div[contains(@class,"bookid_bookInfo")]/p[5]/small/text()',num=1)
|
||||||
chapters = htmlUtils.xpathData('//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
|
chapters = htmlUtils.xpathData('//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/text()')
|
||||||
chapter_href = htmlUtils.xpathData('//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/@href')
|
chapter_href = htmlUtils.xpathData('//div[contains(@class,"bookid_chapterBox")]//div[contains(@class,"bookid_chapter")]/a/@href', update=True)
|
||||||
|
|
||||||
author = str(author).replace("&",",").replace(" ",",")
|
author = str(author).replace("&",",").replace(" ",",")
|
||||||
comicInfo.setHomePage(c_url)
|
comicInfo.setHomePage(c_url)
|
||||||
|
|||||||
Reference in new issue
Block a user