Store: Fix smashwords plugin.

This commit is contained in:
John Schember 2012-05-12 13:29:45 -04:00
parent 6c54396b4f
commit 888768e14f

View File

@ -53,7 +53,7 @@ class SmashwordsStore(BasicStoreConfig, StorePlugin):
counter = max_results counter = max_results
with closing(br.open(url, timeout=timeout)) as f: with closing(br.open(url, timeout=timeout)) as f:
doc = html.fromstring(f.read()) doc = html.fromstring(f.read())
for data in doc.xpath('//div[@id="pageCenterContent2"]//div[@class="bookCoverImg"]'): for data in doc.xpath('//div[@id="pageCenterContent"]//div[@class="bookCoverImg"]'):
if counter <= 0: if counter <= 0:
break break
data = html.fromstring(html.tostring(data)) data = html.fromstring(html.tostring(data))