From cccc449f87cef1636ebd1e7cd3ca245728323e76 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Sat, 11 Jan 2025 07:34:06 -0700 Subject: [PATCH] Handle case where user has multiple manual events on same camera --- frigate/review/maintainer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frigate/review/maintainer.py b/frigate/review/maintainer.py index b4edb035b2..c99479a670 100644 --- a/frigate/review/maintainer.py +++ b/frigate/review/maintainer.py @@ -527,7 +527,9 @@ def run(self) -> None: if event_id in self.indefinite_events[camera]: self.indefinite_events[camera].pop(event_id) - current_segment.last_update = manual_info["end_time"] + + if len(self.indefinite_events[camera]) == 0: + 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."