Update frigate/http.py

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
vanseforge 2024-02-07 16:56:58 +01:00 committed by GitHub
parent d20df255db
commit 34336cfbbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -834,7 +834,7 @@ def label_thumbnail(camera_name, label):
response.headers["Cache-Control"] = "no-store"
return response
@bp.route("/<camera_name>/<label>/last_clip.mp4")
@bp.route("/<camera_name>/<label>/clip.mp4")
def label_clip(camera_name, label):
label = unquote(label)
event_query = Event.select(fn.MAX(Event.id)).where(Event.camera == camera_name, Event.has_clip == True)