From 6a2b5e71f176826e058da07ceefb4940a71ecf2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Tue, 25 Feb 2014 21:50:12 +0100 Subject: [PATCH] strip formats in Publio store --- src/calibre/gui2/store/stores/publio_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/stores/publio_plugin.py b/src/calibre/gui2/store/stores/publio_plugin.py index a675ba8ca1..0ec8f45335 100644 --- a/src/calibre/gui2/store/stores/publio_plugin.py +++ b/src/calibre/gui2/store/stores/publio_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__ = '2012-2014, Tomasz Długosz ' @@ -64,7 +64,7 @@ class PublioStore(BasicStoreConfig, StorePlugin): price = ''.join(data.xpath('.//div[@class="priceBox tk-museo-slab"]/ins/text()')) if not price: price = ''.join(data.xpath('.//div[@class="priceBox tk-museo-slab"]/text()')).strip() - formats = ', '.join(data.xpath('.//div[@class="formats"]/a/text()')) + formats = ', '.join([x.strip() for x in data.xpath('.//div[@class="formats"]/a/text()')]) counter -= 1