mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
improve authors field in legimi
This commit is contained in:
parent
1bb04e2af9
commit
ddfaaf080c
@ -61,8 +61,6 @@ class LegimiStore(BasicStoreConfig, StorePlugin):
|
|||||||
cover_url = ''.join(data.xpath('.//img[1]/@src'))
|
cover_url = ''.join(data.xpath('.//img[1]/@src'))
|
||||||
title = ''.join(data.xpath('.//span[@class="bookListTitle ellipsis"]/text()'))
|
title = ''.join(data.xpath('.//span[@class="bookListTitle ellipsis"]/text()'))
|
||||||
author = ''.join(data.xpath('.//span[@class="bookListAuthor ellipsis"]/text()'))
|
author = ''.join(data.xpath('.//span[@class="bookListAuthor ellipsis"]/text()'))
|
||||||
author = re.sub(',','',author)
|
|
||||||
author = re.sub(';',',',author)
|
|
||||||
price = ''.join(data.xpath('.//div[@class="bookListPrice"]/span/text()'))
|
price = ''.join(data.xpath('.//div[@class="bookListPrice"]/span/text()'))
|
||||||
formats = []
|
formats = []
|
||||||
with closing(br.open(id.strip(), timeout=timeout/4)) as nf:
|
with closing(br.open(id.strip(), timeout=timeout/4)) as nf:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user