mirror of
https://github.com/searxng/searxng.git
synced 2026-09-23 06:36:12 +00:00
[fix] mediathekviewweb: crashes when result has no hd video url (#6717)
This commit is contained in:
@@ -61,7 +61,9 @@ def response(resp: "SXNG_Response") -> EngineResults:
|
|||||||
for item in mwv_result_list:
|
for item in mwv_result_list:
|
||||||
item["hms"] = str(datetime.timedelta(seconds=item["duration"]))
|
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.add(
|
||||||
res.types.LegacyResult(
|
res.types.LegacyResult(
|
||||||
|
|||||||
Reference in New Issue
Block a user