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.

[fix] mediathekviewweb: crashes when result has no hd video url (#6717)

Bnyrof9c9c3554629
diff --git a/searx/engines/mediathekviewweb.py b/searx/engines/mediathekviewweb.py
index 2125b5a88..1b7f173a1 100644
--- a/searx/engines/mediathekviewweb.py
+++ b/searx/engines/mediathekviewweb.py
@@ -61,7 +61,9 @@ def response(resp: "SXNG_Response") -> EngineResults:
for item in mwv_result_list:
item["hms"] = str(datetime.timedelta(seconds=item["duration"]))
- video_url = item["url_video_hd"]
+ video_url = item["url_video_hd"] or item["url_video"] or item["url_video_low"] or item["url_video"]
+ if not video_url:
+ continue
res.add(
res.types.LegacyResult(