Skip to content

Commit

Permalink
Handle go2rtc config correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Dec 15, 2024
1 parent 38102f1 commit c60d595
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frigate/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c60d595

Please sign in to comment.