diff --git a/src/calibre/gui2/store/stores/publio_plugin.py b/src/calibre/gui2/store/stores/publio_plugin.py index c93410abcc..868496366c 100644 --- a/src/calibre/gui2/store/stores/publio_plugin.py +++ b/src/calibre/gui2/store/stores/publio_plugin.py @@ -52,10 +52,13 @@ class PublioStore(BasicStoreConfig, StorePlugin): continue cover_url = ''.join(data.xpath('.//div[@class="img"]/a/img/@data-original')) - title = ''.join(data.xpath('.//div[@class="desc"]/h4/a/text()')) - title2 = ''.join(data.xpath('.//div[@class="desc"]/h5/a/text()')) + title = ''.join(data.xpath('.//div[@class="img"]/a/@title')) + title2 = ''.join(data.xpath('.//div[@class="desc"]/h5//text()')) if title2: title = title + '. ' + title2 + if (''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/span/text()')).strip() == "Seria:"): + series = ''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/a/@title')) + title = title + ' (seria ' + series + ')' author = ', '.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[@class="row"][1]/a/@title')) price = ''.join(data.xpath('.//div[@class="priceBoxContener "]/div/ins/text()')) if not price: @@ -67,8 +70,8 @@ class PublioStore(BasicStoreConfig, StorePlugin): s = SearchResult() s.cover_url = 'http://www.publio.pl' + cover_url s.title = title.strip() - s.author = author.strip() - s.price = price.strip() + s.author = author + s.price = price s.detail_item = 'http://www.publio.pl' + id.strip() s.drm = SearchResult.DRM_LOCKED if 'DRM' in formats else SearchResult.DRM_UNLOCKED s.formats = formats.replace(' DRM','').strip()