update publio plugin

This commit is contained in:
Tomasz Długosz 2012-12-06 22:59:42 +01:00
parent 9e6c33961d
commit acfe6eb4a3

View File

@ -60,9 +60,9 @@ class PublioStore(BasicStoreConfig, StorePlugin):
series = ''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/a/@title')) series = ''.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[last()]/a/@title'))
title = title + ' (seria ' + series + ')' title = title + ' (seria ' + series + ')'
author = ', '.join(data.xpath('./div[@class="desc"]/div[@class="detailShortList"]/div[@class="row"][1]/a/@title')) 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()')) price = ''.join(data.xpath('.//div[@class="priceBox tk-museo-slab"]/ins/text()'))
if not price: if not price:
price = ''.join(data.xpath('.//div[@class="priceBoxContener "]/div/text()')) price = ''.join(data.xpath('.//div[@class="priceBox tk-museo-slab"]/text()')).strip()
formats = ', '.join(data.xpath('.//div[@class="formats"]/a/img/@alt')) formats = ', '.join(data.xpath('.//div[@class="formats"]/a/img/@alt'))
counter -= 1 counter -= 1