diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-22 23:35:17 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-22 23:35:17 +0200 |
commit | 0d6368a0923e7f10f6d971225e27c66e53197d00 (patch) | |
tree | 8a7b2e2d6e48a54c1da2a81851aba23c2dc806f8 /searx/engines/google_images.py | |
parent | 3a6d3e33778fb25dc64002a21681208d9fc509da (diff) | |
download | searxng-0d6368a0923e7f10f6d971225e27c66e53197d00.tar.gz searxng-0d6368a0923e7f10f6d971225e27c66e53197d00.zip |
[fix] skipping empty urls
Diffstat (limited to 'searx/engines/google_images.py')
-rwxr-xr-x | searx/engines/google_images.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |