From 71db7b1238001756a45a51018774bd9df8c81a39 Mon Sep 17 00:00:00 2001 From: Sophie Tauchert <999eagle@999eagle.moe> Date: Mon, 29 Jun 2020 14:48:56 +0200 Subject: [PATCH] Fix YaCy text results returned as images --- searx/engines/yacy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/yacy.py b/searx/engines/yacy.py index 25bc8368..f1d4c6ab 100644 --- a/searx/engines/yacy.py +++ b/searx/engines/yacy.py @@ -75,7 +75,7 @@ def response(resp): for result in search_results[0].get('items', []): # parse image results - if result.get('image'): + if result.get('image') and result.get('width') and result.get('height'): result_url = '' if 'url' in result: