Fix YaCy text results returned as images

This commit is contained in:
Sophie Tauchert 2020-06-29 14:48:56 +02:00
parent fe72c7a6fd
commit 71db7b1238
No known key found for this signature in database
GPG Key ID: 52701DE5F5F51125

View File

@ -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: