From fb72f71f0a9d7500da4a8a06defe6180954f8f91 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 22 Sep 2023 09:14:55 +0200 Subject: [PATCH] [fix] internet archive scholar: crash when there's no title --- searx/engines/internet_archive_scholar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/internet_archive_scholar.py b/searx/engines/internet_archive_scholar.py index fdbc10026..a4f1ddd03 100644 --- a/searx/engines/internet_archive_scholar.py +++ b/searx/engines/internet_archive_scholar.py @@ -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,