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] 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'))