[fix] internet archive scholar: crash when there's no title

This commit is contained in:
Bnyro 2023-09-22 09:14:55 +02:00 committed by MatthieuBarbu
parent 7052ea06d6
commit 624bbcf5ed

View File

@ -56,7 +56,7 @@ def response(resp):
{
'template': 'paper.html',
'url': result['fulltext']['access_url'],
'title': result['biblio']['title'],
'title': result['biblio'].get('title') or result['biblio'].get('container_name'),
'content': html_to_text(content),
'publisher': result['biblio'].get('publisher'),
'doi': doi,