mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-25 09:25:12 +02:00
Update price detection X-path
The price isn't presented in the same way as on the US store
This commit is contained in:
parent
5d331a6c46
commit
eb45063d83
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ def asbytes(x):
|
|||
cover_xpath = "descendant-or-self::img[@class and contains(concat(' ', normalize-space(@class), ' '), ' s-access-image ')]/@src"
|
||||
title_xpath = "descendant-or-self::h2[@class and contains(concat(' ', normalize-space(@class), ' '), ' s-access-title ')]//text()"
|
||||
author_xpath = './/span[starts-with(text(), "%s ")]/following-sibling::span//text()' % BY
|
||||
price_xpath = 'descendant::span[contains(@class, "sx-price")]/../@aria-label'
|
||||
price_xpath = 'descendant::span[contains(@class, "s-price")]//text()'
|
||||
else:
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue