From 2bc13c3fad007484300d7d0d5cdd963f2d1636c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Thu, 1 Sep 2011 18:23:39 +0200 Subject: [PATCH] fixed bookoteka plugin --- src/calibre/gui2/store/stores/bookoteka_plugin.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/store/stores/bookoteka_plugin.py b/src/calibre/gui2/store/stores/bookoteka_plugin.py index a75b8cdb46..b0afd58f41 100644 --- a/src/calibre/gui2/store/stores/bookoteka_plugin.py +++ b/src/calibre/gui2/store/stores/bookoteka_plugin.py @@ -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()'))