From 340be7f86d865b8c7a16088a3bad16221f935e71 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Wed, 9 Feb 2022 16:41:38 -0500 Subject: [PATCH] Allow download of in progress clips --- frigate/http.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index 679a76763..7fa174369 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -249,7 +249,10 @@ def event_clip(id): clip_path = os.path.join(CLIPS_DIR, file_name) if not os.path.isfile(clip_path): - return recording_clip(event.camera, event.start_time, event.end_time) + end_ts = ( + datetime.now().timestamp() if event.end_time is None else event.end_time + ) + return recording_clip(event.camera, event.start_time, end_ts) response = make_response() response.headers["Content-Description"] = "File Transfer"