From 9bd051b6bb30b2f94f942df49d62e8c45d4675c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sat, 9 Aug 2014 22:30:45 +0200 Subject: [PATCH] empik plugin: fix price detection --- src/calibre/gui2/store/stores/empik_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/store/stores/empik_plugin.py b/src/calibre/gui2/store/stores/empik_plugin.py index 22f9fc2b75..54f7bc25d4 100644 --- a/src/calibre/gui2/store/stores/empik_plugin.py +++ b/src/calibre/gui2/store/stores/empik_plugin.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from __future__ import (unicode_literals, division, absolute_import, print_function) -store_version = 4 # Needed for dynamic plugin loading +store_version = 5 # Needed for dynamic plugin loading __license__ = 'GPL 3' -__copyright__ = '2011-2013, Tomasz Długosz ' +__copyright__ = '2011-2014, Tomasz Długosz ' __docformat__ = 'restructuredtext en' import re @@ -55,7 +55,7 @@ class EmpikStore(BasicStoreConfig, StorePlugin): title = ''.join(data.xpath('.//a[@class="productBox-450Title"]/text()')) title = re.sub(r' \(ebook\)', '', title) author = ''.join(data.xpath('.//div[@class="productBox-450Author"]/a/text()')) - price = ''.join(data.xpath('.//div[@class="actPrice"]/text()')) + price = ''.join(data.xpath('.//span[@class="currentPrice"]/text()')) formats = ''.join(data.xpath('.//div[@class="productBox-450Type"]/text()')) formats = re.sub(r'Ebook *,? *','', formats) formats = re.sub(r'\(.*\)','', formats)