diff --git a/frigate/events/external.py b/frigate/events/external.py index fed33b0f7..23439f2bd 100644 --- a/frigate/events/external.py +++ b/frigate/events/external.py @@ -58,7 +58,11 @@ class ExternalEventProcessor: "sub_label": sub_label, "camera": camera, "start_time": now - camera_config.record.events.pre_capture, - "end_time": now + duration + camera_config.record.events.post_capture if duration is not None else None, + "end_time": now + + duration + + camera_config.record.events.post_capture + if duration is not None + else None, "thumbnail": thumbnail, "has_clip": camera_config.record.enabled and include_recording, "has_snapshot": True,