mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-07 00:06:57 +01:00
don't fail on empty producers (#8854)
This commit is contained in:
parent
ebcf25741b
commit
0de800a8e5
@ -1357,7 +1357,7 @@ def go2rtc_streams():
|
|||||||
)
|
)
|
||||||
stream_data = r.json()
|
stream_data = r.json()
|
||||||
for data in stream_data.values():
|
for data in stream_data.values():
|
||||||
for producer in data["producers"]:
|
for producer in data.get("producers", []):
|
||||||
producer["url"] = clean_camera_user_pass(producer.get("url", ""))
|
producer["url"] = clean_camera_user_pass(producer.get("url", ""))
|
||||||
return jsonify(stream_data)
|
return jsonify(stream_data)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user