From 0d6368a0923e7f10f6d971225e27c66e53197d00 Mon Sep 17 00:00:00 2001 From: asciimoo Date: Tue, 22 Oct 2013 23:35:17 +0200 Subject: [PATCH] [fix] skipping empty urls --- searx/engines/google_images.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/engines/google_images.py b/searx/engines/google_images.py index 2db4fb0e2..cacebeaf1 100755 --- a/searx/engines/google_images.py +++ b/searx/engines/google_images.py @@ -23,5 +23,7 @@ def response(resp): for result in search_res['responseData']['results']: url = result['originalContextUrl'] title = result['title'] + if not result['url']: + continue results.append({'url': url, 'title': title, 'content': '', 'img_src': result['url'], 'template': 'images.html'}) return results