mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
fix title detection
This commit is contained in:
parent
f21f73dbfa
commit
490c3cc56f
@ -52,13 +52,11 @@ class PublioStore(BasicStoreConfig, StorePlugin):
|
||||
continue
|
||||
|
||||
cover_url = ''.join(data.xpath('.//div[@class="img"]/a/img/@data-original'))
|
||||
# TODO: fix highlight handling
|
||||
title = ''.join(data.xpath('.//div[@class="desc"]/h4/a/text()'))
|
||||
title2 = ''.join(data.xpath('.//div[@class="desc"]/h5/a/text()'))
|
||||
title = ''.join(data.xpath('.//div[@class="img"]/a/@title'))
|
||||
title2 = ''.join(data.xpath('.//div[@class="desc"]/h5//text()'))
|
||||
if title2:
|
||||
title = title + '. ' + title2
|
||||
if (''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/span/text()')).strip() == "Seria:"):
|
||||
# TODO: fix highlight handling
|
||||
series = ''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/a/@title'))
|
||||
title = title + ' (seria ' + series + ')'
|
||||
author = ', '.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[@class="row"][1]/a/@title'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user