Skip to content

NVR with realtime local object detection for IP cameras

API recordings snapsnot PNG fix (#8401)

tpjanssenfd6a3bd5d226
diff --git a/frigate/http.py b/frigate/http.py
index 0061d338f5..725a6f467b 100644
--- a/frigate/http.py
+++ b/frigate/http.py
@@ -1388,6 +1388,8 @@ def get_snapshot_from_recording(camera_name: str, frame_time: str):
)
)
.where(Recordings.camera == camera_name)
+ .order_by(Recordings.start_time.desc())
+ .limit(1)
)
try: