From 1294635c25d43c4df1b14b8103ec15dc121377c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Tue, 6 Aug 2013 20:47:23 +0200 Subject: [PATCH 1/2] fix detection of discounted price in koobe --- src/calibre/gui2/store/stores/koobe_plugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/store/stores/koobe_plugin.py b/src/calibre/gui2/store/stores/koobe_plugin.py index b8b7386593..0b8ee8f719 100644 --- a/src/calibre/gui2/store/stores/koobe_plugin.py +++ b/src/calibre/gui2/store/stores/koobe_plugin.py @@ -62,6 +62,8 @@ class KoobeStore(BasicStoreConfig, StorePlugin): cover_url = ''.join(data.xpath('.//div[@class="cover"]/a/img/@src')) price = ''.join(data.xpath('.//span[@class="current_price"]/text()')) + if not price: + price = ''.join(data.xpath('.//div[@class="book_promo_price"]/span/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')) From 7fb0bf9c0ffe57f9718a6966caa68e0f00ae255b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Tue, 6 Aug 2013 20:51:45 +0200 Subject: [PATCH 2/2] bump up koobe plugin version --- src/calibre/gui2/store/stores/koobe_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/store/stores/koobe_plugin.py b/src/calibre/gui2/store/stores/koobe_plugin.py index 0b8ee8f719..d767a832cb 100644 --- a/src/calibre/gui2/store/stores/koobe_plugin.py +++ b/src/calibre/gui2/store/stores/koobe_plugin.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import (unicode_literals, division, absolute_import, print_function) -store_version = 3 # Needed for dynamic plugin loading +store_version = 4 # Needed for dynamic plugin loading __license__ = 'GPL 3' __copyright__ = '2013, Tomasz Długosz '