Store: Fix ebooks.com to accomidate site change.

This commit is contained in:
John Schember 2011-05-20 07:34:53 -04:00
parent 62731e27eb
commit f5f5f01c22

View File

@ -59,9 +59,10 @@ class EbookscomStore(BasicStoreConfig, StorePlugin):
break break
id = ''.join(data.xpath('.//a[1]/@href')) id = ''.join(data.xpath('.//a[1]/@href'))
id = id.split('=')[-1] mo = re.search('\d+', id)
if not id: if not mo:
continue continue
id = mo.group()
cover_url = ''.join(data.xpath('.//img[1]/@src')) cover_url = ''.join(data.xpath('.//img[1]/@src'))