From 28c725e47089a039736c814d6a956fd6479d90bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Fri, 14 Feb 2014 17:26:40 +0100 Subject: [PATCH] update author detection in wolnelektury store --- src/calibre/gui2/store/stores/wolnelektury_plugin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/calibre/gui2/store/stores/wolnelektury_plugin.py b/src/calibre/gui2/store/stores/wolnelektury_plugin.py index b8564eb61f..0f53c95161 100644 --- a/src/calibre/gui2/store/stores/wolnelektury_plugin.py +++ b/src/calibre/gui2/store/stores/wolnelektury_plugin.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- from __future__ import (unicode_literals, division, absolute_import, print_function) -store_version = 1 # Needed for dynamic plugin loading +store_version = 2 # Needed for dynamic plugin loading __license__ = 'GPL 3' -__copyright__ = '2012-2013, Tomasz Długosz ' +__copyright__ = '2012-2014, Tomasz Długosz ' __docformat__ = 'restructuredtext en' import urllib @@ -55,9 +55,9 @@ class WolneLekturyStore(BasicStoreConfig, StorePlugin): if not id: continue - cover_url = ''.join(data.xpath('.//a[1]/img/@src')) + cover_url = ''.join(data.xpath('.//div[@class="cover-area"]//img/@src')) title = ''.join(data.xpath('.//div[@class="title"]/a[1]/text()')) - author = ', '.join(data.xpath('.//div[@class="mono author"]/a/text()')) + author = ', '.join(data.xpath('.//div[@class="author"]/a/text()')) price = '0,00 zł' counter -= 1