From adcdc5be26b4035a825e76a9c24329ea2dbe0050 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 26 Sep 2012 13:04:09 +0530 Subject: [PATCH] Get Books: Fix incorrect price retrieval from ebooks.com. Fixes #1055785 (Price of book search always incorrect) --- src/calibre/gui2/store/stores/ebooks_com_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/store/stores/ebooks_com_plugin.py b/src/calibre/gui2/store/stores/ebooks_com_plugin.py index 7bf6704d9f..826b59d41d 100644 --- a/src/calibre/gui2/store/stores/ebooks_com_plugin.py +++ b/src/calibre/gui2/store/stores/ebooks_com_plugin.py @@ -97,7 +97,7 @@ class EbookscomStore(BasicStoreConfig, StorePlugin): with closing(br.open(url + id, timeout=timeout)) as nf: pdoc = html.fromstring(nf.read()) - price_l = pdoc.xpath('//span[@class="price"]/text()') + price_l = pdoc.xpath('//div[@class="book-info"]/div[@class="price"]/text()') if price_l: price = price_l[0] search_result.price = price.strip()