mirror of
https://github.com/searxng/searxng.git
synced 2026-06-06 18:07:18 +02:00
[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 <markus.heiser@darmarit.de>
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user