From aff248c62adc564c070e945d598ba5c6bdc24934 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 15 Sep 2023 07:33:49 -0600 Subject: [PATCH] Set response --- frigate/http.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frigate/http.py b/frigate/http.py index ed47c8661..56916bb7c 100644 --- a/frigate/http.py +++ b/frigate/http.py @@ -1646,7 +1646,12 @@ def export_recording(camera_name: str, start_time, end_time): ) if recordings_count <= 0: - return "No recordings found for time range", 400 + return make_response( + jsonify( + {"success": False, "message": "No recordings found for time range"} + ), + 400, + ) exporter = RecordingExporter( current_app.frigate_config,