mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
fix detection of discounted price in koobe
This commit is contained in:
parent
727944a4b5
commit
1294635c25
@ -62,6 +62,8 @@ class KoobeStore(BasicStoreConfig, StorePlugin):
|
|||||||
|
|
||||||
cover_url = ''.join(data.xpath('.//div[@class="cover"]/a/img/@src'))
|
cover_url = ''.join(data.xpath('.//div[@class="cover"]/a/img/@src'))
|
||||||
price = ''.join(data.xpath('.//span[@class="current_price"]/text()'))
|
price = ''.join(data.xpath('.//span[@class="current_price"]/text()'))
|
||||||
|
if not price:
|
||||||
|
price = ''.join(data.xpath('.//div[@class="book_promo_price"]/span/text()'))
|
||||||
title = ''.join(data.xpath('.//h2[@class="title"]/a/text()'))
|
title = ''.join(data.xpath('.//h2[@class="title"]/a/text()'))
|
||||||
author = ', '.join(data.xpath('.//h3[@class="book_author"]/a/text()'))
|
author = ', '.join(data.xpath('.//h3[@class="book_author"]/a/text()'))
|
||||||
formats = ', '.join(data.xpath('.//div[@class="formats"]/div/div/@title'))
|
formats = ', '.join(data.xpath('.//div[@class="formats"]/div/div/@title'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user