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
|
||||
|
||||
# remove go2rtc stream passwords
|
||||
for stream_name, stream in request.app.frigate_config.go2rtc.get(
|
||||
"streams", {}
|
||||
).items():
|
||||
go2rtc = config_obj.go2rtc.model_dump(
|
||||
mode="json", warnings="none", exclude_none=True
|
||||
)
|
||||
for stream_name, stream in go2rtc.get("streams", {}).items():
|
||||
if isinstance(stream, str):
|
||||
cleaned = clean_camera_user_pass(stream)
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user