From 4cc1ee8565e22442ae92ed5f2015749d684e6087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9mi=20V=C3=A1nyi?= Date: Tue, 12 Oct 2021 20:06:37 +0200 Subject: [PATCH] [fix] qwant engine - only get results from categories Reported-by: https://github.com/searx/searx/issues/3014 Cherry-picked: https://github.com/searx/searx/commit/3bcca43 --- searx/engines/qwant.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searx/engines/qwant.py b/searx/engines/qwant.py index 18e6a65d8..167163b8e 100644 --- a/searx/engines/qwant.py +++ b/searx/engines/qwant.py @@ -138,6 +138,9 @@ def response(resp): for row in mainline: mainline_type = row.get('type', 'web') + if mainline_type != keyword: + continue + if mainline_type == 'ads': # ignore adds continue