mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 10:45:21 +03:00
Use pre capture for custom events
This commit is contained in:
parent
12d4a47e3d
commit
ad01b2653d
@ -57,8 +57,8 @@ class ExternalEventProcessor:
|
|||||||
"label": label,
|
"label": label,
|
||||||
"sub_label": sub_label,
|
"sub_label": sub_label,
|
||||||
"camera": camera,
|
"camera": camera,
|
||||||
"start_time": now,
|
"start_time": now - camera_config.record.events.pre_capture,
|
||||||
"end_time": now + duration if duration is not None else None,
|
"end_time": now + duration + camera_config.record.events.post_capture if duration is not None else None,
|
||||||
"thumbnail": thumbnail,
|
"thumbnail": thumbnail,
|
||||||
"has_clip": camera_config.record.enabled and include_recording,
|
"has_clip": camera_config.record.enabled and include_recording,
|
||||||
"has_snapshot": True,
|
"has_snapshot": True,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user