Browse Source

[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.
0xhtml 7 months ago
parent
commit
c45870dd71
1 changed files with 2 additions and 0 deletions
  1. 2 0
      searx/engines/yep.py

+ 2 - 0
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))