summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/google_images.py')
-rwxr-xr-xsearx/engines/google_images.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index 4ca3fe445..7294b8ad2 100755
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -21,6 +21,8 @@ def response(resp):
for result in search_res['responseData']['results']:
url = result['originalContextUrl']
title = result['title']
- content = result['content']+'<br /><a href="%s"><img src="%s" title="%s" style="max-width: 500px; "/></a>' % (result['url'], result['url'], title)
+ content = '<a href="%s"><img src="%s" title="%s" style="max-width: 500px; "/></a>' % (result['url'], result['url'], title)
+ if result['content']:
+ content += '<br />'+result['content']
results.append({'url': url, 'title': title, 'content': content})
return results