fix Legimi's price

This commit is contained in:
Tomasz Długosz 2011-07-10 12:49:49 +02:00
parent d09610d89e
commit ffb7041ec8

View File

@ -60,8 +60,7 @@ class LegimiStore(BasicStoreConfig, StorePlugin):
author = ''.join(data.xpath('.//div[@class="item_entries"]/span[1]/a/text()')) author = ''.join(data.xpath('.//div[@class="item_entries"]/span[1]/a/text()'))
author = re.sub(',','',author) author = re.sub(',','',author)
author = re.sub(';',',',author) author = re.sub(';',',',author)
price = ''.join(data.xpath('.//div[@class="item_entries"]/span[3]/text()')) price = ''.join(data.xpath('.//span[@class="ebook_price"]/text()'))
price = re.sub(r'[^0-9,]*','',price) + ''
counter -= 1 counter -= 1