improve authors field in legimi

This commit is contained in:
Tomasz Długosz 2013-02-11 22:07:22 +01:00
parent 1bb04e2af9
commit ddfaaf080c

View File

@ -61,8 +61,6 @@ class LegimiStore(BasicStoreConfig, StorePlugin):
cover_url = ''.join(data.xpath('.//img[1]/@src')) cover_url = ''.join(data.xpath('.//img[1]/@src'))
title = ''.join(data.xpath('.//span[@class="bookListTitle ellipsis"]/text()')) title = ''.join(data.xpath('.//span[@class="bookListTitle ellipsis"]/text()'))
author = ''.join(data.xpath('.//span[@class="bookListAuthor ellipsis"]/text()')) author = ''.join(data.xpath('.//span[@class="bookListAuthor ellipsis"]/text()'))
author = re.sub(',','',author)
author = re.sub(';',',',author)
price = ''.join(data.xpath('.//div[@class="bookListPrice"]/span/text()')) price = ''.join(data.xpath('.//div[@class="bookListPrice"]/span/text()'))
formats = [] formats = []
with closing(br.open(id.strip(), timeout=timeout/4)) as nf: with closing(br.open(id.strip(), timeout=timeout/4)) as nf: