fix Goodreads search
This commit is contained in:
parent
468e4b8e62
commit
262e567a70
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ class Goodreads:
|
|||
if r.url.startswith('https://www.goodreads.com/book/show/'):
|
||||
# Goodreads will 302 if only one result matches ISBN
|
||||
data, img = GoodreadsScraper.scrape(r.url, r)
|
||||
subtitle = f"{data['pub_year']} {', '.join(data['author'])} {', '.join(data['translator'])}"
|
||||
subtitle = f"{data['pub_year']} {', '.join(data['author'])} {', '.join(data['translator'] if data['translator'] else [])}"
|
||||
results.append(SearchResultItem(Category.Book, SourceSiteEnum.GOODREADS,
|
||||
data['source_url'], data['title'], subtitle,
|
||||
data['brief'], data['cover_url']))
|
||||
|
|
Loading…
Add table
Reference in a new issue