mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix cover in empik
This commit is contained in:
parent
a030faea35
commit
1bb04e2af9
@ -51,7 +51,7 @@ class EmpikStore(BasicStoreConfig, StorePlugin):
|
|||||||
if not id:
|
if not id:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
cover_url = ''.join(data.xpath('.//div[@class="productBox-450Pic"]/a/img/@src'))
|
cover_url = ''.join(data.xpath('.//div[@class="productBox-450Pic"]/a/img/@data-original'))
|
||||||
title = ''.join(data.xpath('.//a[@class="productBox-450Title"]/text()'))
|
title = ''.join(data.xpath('.//a[@class="productBox-450Title"]/text()'))
|
||||||
title = re.sub(r' \(ebook\)', '', title)
|
title = re.sub(r' \(ebook\)', '', title)
|
||||||
author = ''.join(data.xpath('.//div[@class="productBox-450Author"]/a/text()'))
|
author = ''.join(data.xpath('.//div[@class="productBox-450Author"]/a/text()'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user