mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-19 09:27:06 +03:00
Handle go2rtc config correctly
This commit is contained in:
parent
38102f108f
commit
c60d595bc2
@ -135,9 +135,10 @@ def config(request: Request):
|
|||||||
camera_dict["zones"][zone_name]["color"] = zone.color
|
camera_dict["zones"][zone_name]["color"] = zone.color
|
||||||
|
|
||||||
# remove go2rtc stream passwords
|
# remove go2rtc stream passwords
|
||||||
for stream_name, stream in request.app.frigate_config.go2rtc.get(
|
go2rtc = config_obj.go2rtc.model_dump(
|
||||||
"streams", {}
|
mode="json", warnings="none", exclude_none=True
|
||||||
).items():
|
)
|
||||||
|
for stream_name, stream in go2rtc.get("streams", {}).items():
|
||||||
if isinstance(stream, str):
|
if isinstance(stream, str):
|
||||||
cleaned = clean_camera_user_pass(stream)
|
cleaned = clean_camera_user_pass(stream)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user