summaryrefslogtreecommitdiff
path: root/searx/engines
diff options
context:
space:
mode:
author0xhtml <34682885+0xhtml@users.noreply.github.com>2024-09-11 16:44:58 +0200
committerBnyro <bnyro@tutanota.com>2024-09-12 00:04:04 +0200
commitc45870dd71c54643c1ca17475ef3eac6054eafa3 (patch)
treef9488ebb4309286ce289f0dc90d45bf68cc1400e /searx/engines
parent5cca3f6ef2a041fbf46d37abd52525dd700c4a85 (diff)
downloadsearxng-c45870dd71c54643c1ca17475ef3eac6054eafa3.tar.gz
searxng-c45870dd71c54643c1ca17475ef3eac6054eafa3.zip
[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.
Diffstat (limited to 'searx/engines')
-rw-r--r--searx/engines/yep.py2
1 files changed, 2 insertions, 0 deletions
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))