NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Don't show mark reviewed button when all items are in progress (#11636)
Nicolas Mowenec887526663e
diff --git a/frigate/output/preview.py b/frigate/output/preview.pyindex 7b89a07e04..31c9ec0084 100644--- a/frigate/output/preview.py+++ b/frigate/output/preview.py@@ -209,7 +209,12 @@ class PreviewRecorder:os.unlink(os.path.join(PREVIEW_CACHE_DIR, file))continue- ts = float(file.split("-")[1][: -(len(PREVIEW_FRAME_TYPE) + 1)])+ file_time = file.split("-")[1][: -(len(PREVIEW_FRAME_TYPE) + 1)]++ if not file_time:+ continue++ ts = float(file_time)if self.start_time == 0:self.start_time = tsdiff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsxindex 2a4374a3fd..5e35aef28d 100644--- a/web/src/views/events/EventView.tsx+++ b/web/src/views/events/EventView.tsx@@ -588,7 +588,7 @@ function DetectionReview({<Skeleton key={idx} className="aspect-video size-full" />))}{!loading &&- (currentItems?.length ?? 0) > 0 &&+ (currentItems?.filter((seg) => seg.end_time)?.length ?? 0) > 0 &&(itemsToReview ?? 0) > 0 && (<div className="col-span-full flex items-center justify-center"><Button