From 0b9720f2d2cb3a459e4a33dabf3703e56a21d6fd Mon Sep 17 00:00:00 2001 From: John Schember Date: Sun, 30 Dec 2012 21:16:16 -0500 Subject: [PATCH] Store: Fix Smashwords plugin. --- src/calibre/gui2/store/stores/smashwords_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/store/stores/smashwords_plugin.py b/src/calibre/gui2/store/stores/smashwords_plugin.py index 2c69417612..983067ab51 100644 --- a/src/calibre/gui2/store/stores/smashwords_plugin.py +++ b/src/calibre/gui2/store/stores/smashwords_plugin.py @@ -76,7 +76,7 @@ class SmashwordsStore(BasicStoreConfig, StorePlugin): title = ''.join(data.xpath('//a[@class="bookTitle"]/text()')) subnote = ''.join(data.xpath('//span[@class="subnote"]/text()')) - author = ''.join(data.xpath('//span[@class="subnote"]/a/text()')) + author = ''.join(data.xpath('//span[@class="subnote"]//a[1]//text()')) if '$' in subnote: price = subnote.partition('$')[2] price = price.split(u'\xa0')[0]