From b9cdad9178608ffc4ea2072e3ecc033e9cc3e996 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Sat, 19 Oct 2013 23:18:39 +0200 Subject: [PATCH] [mod] content formatting --- searx/engines/google_images.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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']+'
' % (result['url'], result['url'], title) + content = '' % (result['url'], result['url'], title) + if result['content']: + content += '
'+result['content'] results.append({'url': url, 'title': title, 'content': content}) return results