mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:33:43 +02:00
Store: ebooks.com fix author and cover display.
This commit is contained in:
parent
67b3e063ce
commit
340998fbee
1 changed files with 2 additions and 2 deletions
|
|
@ -64,11 +64,11 @@ def search(self, query, max_results=10, timeout=60):
|
|||
continue
|
||||
id = mo.group()
|
||||
|
||||
cover_url = ''.join(data.xpath('.//div[@class="img"]//img/@src'))
|
||||
cover_url = ''.join(data.xpath('.//div[contains(@class, "img")]//img/@src'))
|
||||
|
||||
title = ''.join(data.xpath(
|
||||
'descendant::span[@class="book-title"]/a/text()')).strip()
|
||||
author = ''.join(data.xpath(
|
||||
author = ', '.join(data.xpath(
|
||||
'descendant::span[@class="author"]/a/text()')).strip()
|
||||
if not title or not author:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue