mirror of
https://github.com/searxng/searxng.git
synced 2024-11-25 20:31:00 +00:00
[fix] yep engine: remove links to other engines
Yep includes links to search for the same query on Google and other search engines as a result in the search result. This fix skips these results.
This commit is contained in:
parent
5cca3f6ef2
commit
c45870dd71
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ def response(resp):
|
|||
|
||||
for result in resp.json()[1]['results']:
|
||||
if search_type == "web":
|
||||
if result['type'] != 'Organic':
|
||||
continue
|
||||
results.append(_web_result(result))
|
||||
elif search_type == "images":
|
||||
results.append(_images_result(result))
|
||||
|
|
Loading…
Reference in a new issue