mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-25 16:04:41 +03:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e4fe07833e | ||
|
|
5dd9972837 |
@@ -4,7 +4,7 @@ click == 8.5.*
|
||||
aiohttp == 3.14.*
|
||||
starlette == 1.9.*
|
||||
starlette-context == 0.5.*
|
||||
fastapi[standard-no-fastapi-cloud-cli] == 0.153.*
|
||||
fastapi[standard-no-fastapi-cloud-cli] == 0.159.*
|
||||
uvicorn == 0.54.*
|
||||
slowapi == 0.1.*
|
||||
joserfc == 1.7.*
|
||||
|
||||
+1
-1
@@ -1315,7 +1315,7 @@ def nvinfo():
|
||||
dependencies=[Depends(require_role(["admin"]))],
|
||||
)
|
||||
async def logs(
|
||||
service: str = Path(enum=["frigate", "nginx", "go2rtc"]),
|
||||
service: str = Path(json_schema_extra={"enum": ["frigate", "nginx", "go2rtc"]}),
|
||||
download: str | None = None,
|
||||
stream: bool | None = False,
|
||||
start: int | None = 0,
|
||||
|
||||
@@ -337,7 +337,7 @@ async def get_snapshot_from_recording(
|
||||
request: Request,
|
||||
camera_name: str,
|
||||
frame_time: float,
|
||||
format: str = Path(enum=["png", "jpg"]),
|
||||
format: str = Path(json_schema_extra={"enum": ["png", "jpg"]}),
|
||||
height: int = None,
|
||||
):
|
||||
if camera_name not in request.app.frigate_config.cameras:
|
||||
@@ -1061,7 +1061,7 @@ async def event_thumbnail(
|
||||
max_cache_age: int = Query(
|
||||
2592000, description="Max cache age in seconds. Default 30 days in seconds."
|
||||
),
|
||||
format: str = Query(default="ios", enum=["ios", "android"]),
|
||||
format: str = Query(default="ios", json_schema_extra={"enum": ["ios", "android"]}),
|
||||
):
|
||||
thumbnail_bytes = None
|
||||
event_complete = False
|
||||
@@ -1858,7 +1858,7 @@ async def preview_mp4(
|
||||
async def review_preview(
|
||||
request: Request,
|
||||
event_id: str,
|
||||
format: str = Query(default="gif", enum=["gif", "mp4"]),
|
||||
format: str = Query(default="gif", json_schema_extra={"enum": ["gif", "mp4"]}),
|
||||
):
|
||||
try:
|
||||
review: ReviewSegment = ReviewSegment.get(ReviewSegment.id == event_id)
|
||||
|
||||
Reference in New Issue
Block a user