From 0429198415764e245a1b0fb42c8ae03f985b1f8d Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 5 Jun 2026 14:34:27 +0200 Subject: [PATCH] [mod] swisscows WEB: ignore video results from the first page On the first page of the WEB search, there are, among other things, sections for videos and news. The video results from these sections should not be used as results in the WEB search of SearXNG. Signed-off-by: Markus Heiser --- searx/engines/swisscows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/swisscows.py b/searx/engines/swisscows.py index 03c1f76f3..68f1d0bb5 100644 --- a/searx/engines/swisscows.py +++ b/searx/engines/swisscows.py @@ -266,7 +266,7 @@ def response(resp: "SXNG_Response") -> EngineResults: thumbnail=result.get("thumbnail", {}).get("url"), ) ) - elif result["type"] == "VideoCollection": + elif swisscows_category == "videos" and result["type"] == "VideoCollection": for video in result["hasPart"]: res.add(_video_result(video)) elif result["type"] == "ImageObject":