From 3f05d5fabb64c15f092520b8df4f48a447d9d65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sun, 7 Apr 2013 21:35:43 +0200 Subject: [PATCH] fix formats and price improvement in koobe --- src/calibre/gui2/store/stores/koobe_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/store/stores/koobe_plugin.py b/src/calibre/gui2/store/stores/koobe_plugin.py index ffb9a26a7f..0370e70666 100644 --- a/src/calibre/gui2/store/stores/koobe_plugin.py +++ b/src/calibre/gui2/store/stores/koobe_plugin.py @@ -55,7 +55,7 @@ class KoobeStore(BasicStoreConfig, StorePlugin): price = ''.join(data.xpath('.//span[@class="current_price"]/text()')) title = ''.join(data.xpath('.//h2[@class="title"]/a/text()')) author = ''.join(data.xpath('.//h3[@class="book_author"]/a/text()')) - formats = ''.join(data.xpath('.//div[@class="formats"]/div/div/@title')) + formats = ', '.join(data.xpath('.//div[@class="formats"]/div/div/@title')) counter -= 1 @@ -63,9 +63,9 @@ class KoobeStore(BasicStoreConfig, StorePlugin): s.cover_url = 'http://koobe.pl/' + cover_url s.title = title.strip() s.author = author.strip() - s.price = price + ' zł' + s.price = price s.detail_item = 'http://koobe.pl' + id[1:] - s.formats = ', '.join(formats).upper() + s.formats = formats.upper() s.drm = SearchResult.DRM_UNKNOWN yield s