Merge pull request #1277 from kvch/fix-findx-engine

Fix findx engine
This commit is contained in:
Adam Tauber 2018-04-21 20:19:04 +02:00 committed by GitHub
commit 829d479312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def response(resp):
results_json = loads(extract_text(results_raw_json))
if len(results_json['web']['results']) > 0:
return _general_results(results_json['web']['results'])
return _general_results(results_json['web']['results']['webSearch']['results'])
if len(results_json['images']['results']) > 0:
return _images_results(results_json['images']['results'])