summaryrefslogtreecommitdiff
path: root/searx/engines/google_images.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-22 23:34:45 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-22 23:34:45 +0200
commit3a6d3e33778fb25dc64002a21681208d9fc509da (patch)
tree8e5074301b662aa3b7f1d883082c6e8bfd90c965 /searx/engines/google_images.py
parent31471ed93647cbd38e83504c69aa298a40202465 (diff)
downloadsearxng-3a6d3e33778fb25dc64002a21681208d9fc509da.tar.gz
searxng-3a6d3e33778fb25dc64002a21681208d9fc509da.zip
[enh][mod] using image template rendering
Diffstat (limited to 'searx/engines/google_images.py')
-rwxr-xr-xsearx/engines/google_images.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py
index bb7209ca6..2db4fb0e2 100755
--- a/searx/engines/google_images.py
+++ b/searx/engines/google_images.py
@@ -23,8 +23,5 @@ def response(resp):
for result in search_res['responseData']['results']:
url = result['originalContextUrl']
title = result['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})
+ results.append({'url': url, 'title': title, 'content': '', 'img_src': result['url'], 'template': 'images.html'})
return results