Browse Source

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

Bnyro 1 year ago
parent
commit
fb72f71f0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/internet_archive_scholar.py

+ 1 - 1
searx/engines/internet_archive_scholar.py

@@ -56,7 +56,7 @@ def response(resp):
             {
             {
                 'template': 'paper.html',
                 'template': 'paper.html',
                 'url': result['fulltext']['access_url'],
                 '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),
                 'content': html_to_text(content),
                 'publisher': result['biblio'].get('publisher'),
                 'publisher': result['biblio'].get('publisher'),
                 'doi': doi,
                 'doi': doi,