mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Store: Fix displaying covers in Diesel store.
This commit is contained in:
parent
faf91fd90e
commit
ea5b62a023
@ -63,9 +63,6 @@ class DieselEbooksStore(BasicStoreConfig, StorePlugin):
|
||||
a, b, id = id.partition('/item/')
|
||||
|
||||
cover_url = ''.join(data.xpath('div[@class="cover"]//img/@src'))
|
||||
if cover_url.startswith('/'):
|
||||
cover_url = cover_url[1:]
|
||||
cover_url = 'http://www.diesel-ebooks.com/' + cover_url
|
||||
|
||||
title = ''.join(data.xpath('.//div[@class="content"]//h2/text()'))
|
||||
author = ''.join(data.xpath('//div[@class="content"]//div[@class="author"]/a/text()'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user