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,