mirror of https://github.com/searxng/searxng.git
[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
|
@ -67,6 +67,8 @@ def response(resp):
|
||||||
|
|
||||||
for result in resp.json()[1]['results']:
|
for result in resp.json()[1]['results']:
|
||||||
if search_type == "web":
|
if search_type == "web":
|
||||||
|
if result['type'] != 'Organic':
|
||||||
|
continue
|
||||||
results.append(_web_result(result))
|
results.append(_web_result(result))
|
||||||
elif search_type == "images":
|
elif search_type == "images":
|
||||||
results.append(_images_result(result))
|
results.append(_images_result(result))
|
||||||
|
|
Loading…
Reference in New Issue