mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: merge changes from lp:~tomek3d/calibre/stores.
This commit is contained in:
commit
6a70bc0db1
@ -55,11 +55,9 @@ class BookotekaStore(BasicStoreConfig, StorePlugin):
|
||||
if not id:
|
||||
continue
|
||||
|
||||
cover_url = ''.join(data.xpath('.//a[@class="item_link"]/@style'))
|
||||
cover_url = re.sub(r'.*\(', '', cover_url)
|
||||
cover_url = re.sub(r'\).*', '', cover_url)
|
||||
cover_url = ''.join(data.xpath('.//a[@class="item_link"]/img/@src'))
|
||||
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 = price.replace('.', ',')
|
||||
formats = ', '.join(data.xpath('.//a[@class="fancybox protected"]/text()'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user