From f9c9c3554629ece59234453c668d9d8ed3183b4a Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 13 Sep 2026 13:36:51 +0200 Subject: [PATCH] [fix] mediathekviewweb: crashes when result has no hd video url (#6717) --- searx/engines/mediathekviewweb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(