mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Get Books: Fix incorrect price retrieval from ebooks.com. Fixes #1055785 (Price of book search always incorrect)
This commit is contained in:
parent
075fbec828
commit
adcdc5be26
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user