NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Don't log go2rtc failure when camera is disabled (#17277)
Nicolas Mowene396043f794b
diff --git a/frigate/api/app.py b/frigate/api/app.pyindex f19070a3a8..4f45678d0e 100644--- a/frigate/api/app.py+++ b/frigate/api/app.py@@ -80,12 +80,14 @@ def go2rtc_streams():@router.get("/go2rtc/streams/{camera_name}")-def go2rtc_camera_stream(camera_name: str):+def go2rtc_camera_stream(request: Request, camera_name: str):r = requests.get(f"http://127.0.0.1:1984/api/streams?src={camera_name}&video=all&audio=allµphone")if not r.ok:- logger.error("Failed to fetch streams from go2rtc")+ if request.app.frigate_config.cameras.get(camera_name, {}).get("enabled", True):+ logger.error("Failed to fetch streams from go2rtc")+return JSONResponse(content=({"success": False, "message": "Error fetching stream data"}),status_code=500,