From 262e567a706c1a1acb3e67cbe3b716e37cc8b5c2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 12 Jun 2022 11:25:57 -0400 Subject: [PATCH] fix Goodreads search --- common/searcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/searcher.py b/common/searcher.py index 839c44b4..e4523770 100644 --- a/common/searcher.py +++ b/common/searcher.py @@ -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']))