mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-16 06:12:58 +00:00
Merge remote-tracking branch 'remotes/origin/goodreads-fix' into patch-test
This commit is contained in:
commit
30799996c9
10
cps/web.py
10
cps/web.py
@ -1225,9 +1225,13 @@ def author(book_id, page):
|
|||||||
author_info = None
|
author_info = None
|
||||||
other_books = []
|
other_books = []
|
||||||
if goodreads_support and config.config_use_goodreads:
|
if goodreads_support and config.config_use_goodreads:
|
||||||
gc = GoodreadsClient(config.config_goodreads_api_key, config.config_goodreads_api_secret)
|
try:
|
||||||
author_info = gc.find_author(author_name=name)
|
gc = GoodreadsClient(config.config_goodreads_api_key, config.config_goodreads_api_secret)
|
||||||
other_books = get_unique_other_books(entries.all(), author_info.books)
|
author_info = gc.find_author(author_name=name)
|
||||||
|
other_books = get_unique_other_books(entries.all(), author_info.books)
|
||||||
|
except:
|
||||||
|
# Skip goodreads, if site is down/inaccessible
|
||||||
|
pass
|
||||||
|
|
||||||
return render_title_template('author.html', entries=entries, pagination=pagination,
|
return render_title_template('author.html', entries=entries, pagination=pagination,
|
||||||
title=name, author=author_info, other_books=other_books)
|
title=name, author=author_info, other_books=other_books)
|
||||||
|
Loading…
Reference in New Issue
Block a user