fix #261
This commit is contained in:
4
fanza.py
4
fanza.py
@@ -57,11 +57,11 @@ def getLabel(text):
|
|||||||
html = etree.fromstring(text, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
|
html = etree.fromstring(text, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
|
||||||
try:
|
try:
|
||||||
result = html.xpath(
|
result = html.xpath(
|
||||||
"//td[contains(text(),'シリーズ:')]/following-sibling::td/a/text()"
|
"//td[contains(text(),'レーベル:')]/following-sibling::td/a/text()"
|
||||||
)[0]
|
)[0]
|
||||||
except:
|
except:
|
||||||
result = html.xpath(
|
result = html.xpath(
|
||||||
"//td[contains(text(),'シリーズ:')]/following-sibling::td/text()"
|
"//td[contains(text(),'レーベル:')]/following-sibling::td/text()"
|
||||||
)[0]
|
)[0]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user