Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[mod] swisscows WEB: ignore video results from the first page

Markus Heiser042919841576
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":