mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-04 04:55:07 +02:00
fixed bookoteka plugin
This commit is contained in:
parent
4d1dc4fe05
commit
2bc13c3fad
1 changed files with 2 additions and 4 deletions
|
|
@ -55,11 +55,9 @@ def search(self, query, max_results=10, timeout=60):
|
|||
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…
Reference in a new issue