mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-24 13:44:49 +02:00
Store: Fix Smashwords plugin.
This commit is contained in:
parent
9dbeb3c877
commit
0b9720f2d2
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ def search(self, query, max_results=10, timeout=60):
|
|||
|
||||
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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue