mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 08:35:21 +03:00
Fixed usage of ExportRecordingsBody
This commit is contained in:
parent
0027e3fd96
commit
de4fecccf9
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user