From 091298f90e3e4d9468c59fb46c9ec16aa0c061f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sun, 6 Aug 2023 14:49:41 +0200 Subject: [PATCH] Get books: virtualo price lookup fix --- src/calibre/gui2/store/stores/virtualo_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/stores/virtualo_plugin.py b/src/calibre/gui2/store/stores/virtualo_plugin.py index b024029008..0229a6c94f 100644 --- a/src/calibre/gui2/store/stores/virtualo_plugin.py +++ b/src/calibre/gui2/store/stores/virtualo_plugin.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -store_version = 11 # Needed for dynamic plugin loading +store_version = 12 # Needed for dynamic plugin loading __license__ = 'GPL 3' __copyright__ = '2011-2023, Tomasz Długosz ' @@ -74,7 +74,7 @@ class VirtualoStore(BasicStoreConfig, StorePlugin): if not id: continue - price = ''.join(data.xpath('.//div[@class="info"]//div[@class="price"]/text()')) + price = ''.join(data.xpath('.//div[@class="info"]//div[@class="price"]/div/text()|.//div[@class="info"]//div[@class="price price--no-promo"]/div/text()')) cover_url = ''.join(data.xpath('.//img[@class="cover"]/@src')) title = ''.join(data.xpath('.//h3[@class="title"]/a//text()')) author = ', '.join(data.xpath('.//div[@class="info"]//div[@class="authors"]/a//text()'))