Browse Source

Fix YaCy text results returned as images

Sophie Tauchert 4 years ago
parent
commit
71db7b1238
1 changed files with 1 additions and 1 deletions
  1. 1 1
      searx/engines/yacy.py

+ 1 - 1
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: