From 28eedbe8a631990cc6d3de0dec42d22e6cf5c292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sun, 22 Dec 2019 00:06:23 +0100 Subject: [PATCH] swiatebookow store: update --- src/calibre/gui2/store/stores/swiatebookow_plugin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/calibre/gui2/store/stores/swiatebookow_plugin.py b/src/calibre/gui2/store/stores/swiatebookow_plugin.py index ec884e3f09..a8d582ceb1 100644 --- a/src/calibre/gui2/store/stores/swiatebookow_plugin.py +++ b/src/calibre/gui2/store/stores/swiatebookow_plugin.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals -store_version = 1 # Needed for dynamic plugin loading +store_version = 2 # Needed for dynamic plugin loading __license__ = 'GPL 3' -__copyright__ = '2017, Tomasz Długosz ' +__copyright__ = '2017-2019, Tomasz Długosz ' __docformat__ = 'restructuredtext en' from base64 import b64encode @@ -73,10 +73,10 @@ class SwiatEbookowStore(BasicStoreConfig, StorePlugin): if not id: continue - cover_url = ''.join(data.xpath('.//div[@class="cover-xs"]/img/@src')) + cover_url = ''.join(data.xpath('.//div[@class="cover-xs"]//img/@data-src')) price = ''.join(data.xpath('.//span[@class="item-price"]/text()')+data.xpath('.//span[@class="sub-price"]/text()')) - title = ''.join(data.xpath('.//h3/text()')) - author = ', '.join(data.xpath('.//div[@class="details"]/p/a/text()')) + title = ''.join(data.xpath('.//div[@class="largebox-book-info"]//h2/a/text()')) + author = ', '.join(data.xpath('.//div[@class="largebox-book-info"]/p/a/text()')) counter -= 1