Merge pull request #2036 from 999eagle/patch-yacy

Fix YaCy text results returned as images
This commit is contained in:
Adam Tauber 2020-06-29 15:29:33 +02:00 committed by GitHub
commit 460401293c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ def response(resp):
for result in search_results[0].get('items', []): for result in search_results[0].get('items', []):
# parse image results # parse image results
if result.get('image'): if result.get('image') and result.get('width') and result.get('height'):
result_url = '' result_url = ''
if 'url' in result: if 'url' in result: