From c9ecb341d08f831b9be44a5882327b0e8d22f3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Fri, 14 Feb 2014 15:18:56 +0100 Subject: [PATCH] update format detection in publio store --- src/calibre/gui2/store/stores/publio_plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/store/stores/publio_plugin.py b/src/calibre/gui2/store/stores/publio_plugin.py index dfcd2eaec9..a675ba8ca1 100644 --- a/src/calibre/gui2/store/stores/publio_plugin.py +++ b/src/calibre/gui2/store/stores/publio_plugin.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from __future__ import (unicode_literals, division, absolute_import, print_function) -store_version = 2 # Needed for dynamic plugin loading +store_version = 3 # Needed for dynamic plugin loading __license__ = 'GPL 3' -__copyright__ = '2012-2013, Tomasz Długosz ' +__copyright__ = '2012-2014, Tomasz Długosz ' __docformat__ = 'restructuredtext en' import urllib @@ -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/img/@alt')) + formats = ', '.join(data.xpath('.//div[@class="formats"]/a/text()')) counter -= 1