mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:14:07 +02:00
Store: ebooks.com fix cover image.
This commit is contained in:
parent
35972b3267
commit
bc5904f560
1 changed files with 1 additions and 5 deletions
|
|
@ -64,11 +64,7 @@ def search(self, query, max_results=10, timeout=60):
|
|||
continue
|
||||
id = mo.group()
|
||||
|
||||
cover_url = ''
|
||||
cover_load = ''.join(data.xpath('.//div[@class="img"]//img/@onload'))
|
||||
mo = re.search('(?<=\').+?(?=\')', cover_load)
|
||||
if mo:
|
||||
cover_url = mo.group();
|
||||
cover_url = ''.join(data.xpath('.//div[@class="img"]//img/@src'))
|
||||
|
||||
title = ''
|
||||
author = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue