mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix price detection
This commit is contained in:
parent
bac2e3ce6c
commit
09c192452b
@ -59,7 +59,7 @@ class GandalfStore(BasicStoreConfig, StorePlugin):
|
|||||||
formats = ''.join(data.xpath('.//div[@class="info"]/p[1]/text()'))
|
formats = ''.join(data.xpath('.//div[@class="info"]/p[1]/text()'))
|
||||||
formats = re.findall(r'\((.*?)\)',formats)[0]
|
formats = re.findall(r'\((.*?)\)',formats)[0]
|
||||||
author = ''.join(data.xpath('.//div[@class="info"]/h4/text() | .//div[@class="info"]/h4/span/text()'))
|
author = ''.join(data.xpath('.//div[@class="info"]/h4/text() | .//div[@class="info"]/h4/span/text()'))
|
||||||
price = ''.join(data.xpath('.//h3[@class="promocja"]/text()'))
|
price = ''.join(data.xpath('.//div[@class="options"]/h3/text()'))
|
||||||
price = re.sub('PLN', 'zł', price)
|
price = re.sub('PLN', 'zł', price)
|
||||||
price = re.sub('\.', ',', price)
|
price = re.sub('\.', ',', price)
|
||||||
drm = data.xpath('boolean(.//div[@class="info" and contains(., "Zabezpieczenie: DRM")])')
|
drm = data.xpath('boolean(.//div[@class="info" and contains(., "Zabezpieczenie: DRM")])')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user