mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-03 05:16:50 +03:00
pin genai review frames to the main stream
This commit is contained in:
@@ -23,6 +23,7 @@ from frigate.const import (
|
|||||||
ATTRIBUTE_LABEL_DISPLAY_MAP,
|
ATTRIBUTE_LABEL_DISPLAY_MAP,
|
||||||
CACHE_DIR,
|
CACHE_DIR,
|
||||||
CLIPS_DIR,
|
CLIPS_DIR,
|
||||||
|
STREAM_TYPE_MAIN,
|
||||||
UPDATE_REVIEW_DESCRIPTION,
|
UPDATE_REVIEW_DESCRIPTION,
|
||||||
)
|
)
|
||||||
from frigate.data_processing.types import PostProcessDataEnum
|
from frigate.data_processing.types import PostProcessDataEnum
|
||||||
@@ -441,6 +442,7 @@ class ReviewDescriptionProcessor(PostProcessorApi):
|
|||||||
)
|
)
|
||||||
.where((ts >= Recordings.start_time) & (ts <= Recordings.end_time))
|
.where((ts >= Recordings.start_time) & (ts <= Recordings.end_time))
|
||||||
.where(Recordings.camera == camera)
|
.where(Recordings.camera == camera)
|
||||||
|
.where(Recordings.stream_type == STREAM_TYPE_MAIN)
|
||||||
.order_by(Recordings.start_time.desc())
|
.order_by(Recordings.start_time.desc())
|
||||||
.limit(1)
|
.limit(1)
|
||||||
.get()
|
.get()
|
||||||
|
|||||||
Reference in New Issue
Block a user