NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Catch case where user tries to end definite manual event (#12951)
Nicolas Mowen3eaf9f401157
diff --git a/frigate/review/maintainer.py b/frigate/review/maintainer.pyindex 8fb1df362c..dfc7259b23 100644--- a/frigate/review/maintainer.py+++ b/frigate/review/maintainer.py@@ -503,8 +503,15 @@ class ReviewSegmentMaintainer(threading.Thread):# temporarily make it so this event can not endcurrent_segment.last_update = sys.maxsizeelif manual_info["state"] == ManualEventState.end:- self.indefinite_events[camera].pop(manual_info["event_id"])- current_segment.last_update = manual_info["end_time"]+ event_id = manual_info["event_id"]++ if event_id in self.indefinite_events[camera]:+ self.indefinite_events[camera].pop(event_id)+ current_segment.last_update = manual_info["end_time"]+ else:+ logger.error(+ f"Event with ID {event_id} has a set duration and can not be ended manually."+ )else:if topic == DetectionTypeEnum.video:self.check_if_new_segment(