mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
fixed bookoteka plugin
This commit is contained in:
parent
4d1dc4fe05
commit
2bc13c3fad
@ -55,11 +55,9 @@ class BookotekaStore(BasicStoreConfig, StorePlugin):
|
|||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cover_url = ''.join(data.xpath('.//a[@class="item_link"]/@style'))
|
cover_url = ''.join(data.xpath('.//a[@class="item_link"]/img/@src'))
|
||||||
cover_url = re.sub(r'.*\(', '', cover_url)
|
|
||||||
cover_url = re.sub(r'\).*', '', cover_url)
|
|
||||||
title = ''.join(data.xpath('.//div[@class="shelf_title"]/a/text()'))
|
title = ''.join(data.xpath('.//div[@class="shelf_title"]/a/text()'))
|
||||||
author = ''.join(data.xpath('.//div[@class="shelf_authors"]/text()'))
|
author = ''.join(data.xpath('.//div[@class="shelf_authors"][1]/text()'))
|
||||||
price = ''.join(data.xpath('.//span[@class="EBOOK"]/text()'))
|
price = ''.join(data.xpath('.//span[@class="EBOOK"]/text()'))
|
||||||
price = price.replace('.', ',')
|
price = price.replace('.', ',')
|
||||||
formats = ', '.join(data.xpath('.//a[@class="fancybox protected"]/text()'))
|
formats = ', '.join(data.xpath('.//a[@class="fancybox protected"]/text()'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user