From c45870dd71c54643c1ca17475ef3eac6054eafa3 Mon Sep 17 00:00:00 2001 From: 0xhtml <34682885+0xhtml@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:44:58 +0200 Subject: [PATCH] [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. --- searx/engines/yep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/searx/engines/yep.py b/searx/engines/yep.py index e01e31c8c..a5c705533 100644 --- a/searx/engines/yep.py +++ b/searx/engines/yep.py @@ -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))