Fixed usage of ExportRecordingsBody

This commit is contained in:
Rui Alves 2024-11-10 21:34:27 +00:00
parent 0027e3fd96
commit de4fecccf9
2 changed files with 2 additions and 2 deletions

View File

@ -10,5 +10,5 @@ class ExportRecordingsBody(BaseModel):
default=PlaybackFactorEnum.realtime, title="Playback factor"
)
source: str = "recordings"
name: str = Field(title="Friendly name", default=None, min_length=1, max_length=256)
name: str = Field(title="Friendly name", min_length=1, max_length=256)
image_path: Optional[str] = None

View File

@ -37,7 +37,7 @@ def export_recording(
camera_name: str,
start_time: float,
end_time: float,
body: dict = ExportRecordingsBody,
body: ExportRecordingsBody,
):
if not camera_name or not request.app.frigate_config.cameras.get(camera_name):
return JSONResponse(