summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/unsplash.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/searx/engines/unsplash.py b/searx/engines/unsplash.py
index 95a80a47c..834bc917c 100644
--- a/searx/engines/unsplash.py
+++ b/searx/engines/unsplash.py
@@ -62,7 +62,8 @@ def response(resp):
'url': clean_url(result['links']['html']),
'thumbnail_src': clean_url(result['urls']['thumb']),
'img_src': clean_url(result['urls']['raw']),
- 'title': result['description'],
- 'content': ''
+ 'title': result.get('alt_description') or 'unknown',
+ 'content': result.get('description') or ''
})
+
return results