From c3ae59451bd37bc1261eca945bd488f0f79b59f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Tue, 27 Nov 2012 21:49:25 +0100 Subject: [PATCH] handle author detection better --- src/calibre/gui2/store/stores/publio_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/store/stores/publio_plugin.py b/src/calibre/gui2/store/stores/publio_plugin.py index 6854d4e5e7..fbf6d0c550 100644 --- a/src/calibre/gui2/store/stores/publio_plugin.py +++ b/src/calibre/gui2/store/stores/publio_plugin.py @@ -57,7 +57,7 @@ class PublioStore(BasicStoreConfig, StorePlugin): title2 = ''.join(data.xpath('.//div[@class="desc"]/h5/a/text()')) if title2: title = title + '. ' + title2 - author = ', '.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[@class="row"]/a/text()')) + author = ', '.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[@class="row"][1]/a/@title')) price = ''.join(data.xpath('.//div[@class="priceBoxContener "]/div/ins/text()')) if not price: price = ''.join(data.xpath('.//div[@class="priceBoxContener "]/div/text()'))