mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Fix handling
This commit is contained in:
parent
dd5c149764
commit
6ee800c1ff
@ -127,9 +127,8 @@ def go2rtc_camera_stream(camera_name: str):
|
|||||||
500,
|
500,
|
||||||
)
|
)
|
||||||
stream_data = r.json()
|
stream_data = r.json()
|
||||||
for data in stream_data.values():
|
for producer in stream_data.get("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