diff --git a/frigate/record/maintainer.py b/frigate/record/maintainer.py index 68040476a..6290a2405 100644 --- a/frigate/record/maintainer.py +++ b/frigate/record/maintainer.py @@ -727,7 +727,8 @@ class RecordingMaintainer(threading.Thread): ) ) elif ( - topic == DetectionTypeEnum.api.value or DetectionTypeEnum.lpr.value + topic == DetectionTypeEnum.api.value + or topic == DetectionTypeEnum.lpr.value ): continue diff --git a/frigate/review/maintainer.py b/frigate/review/maintainer.py index a51c73f88..4dc1d8e6a 100644 --- a/frigate/review/maintainer.py +++ b/frigate/review/maintainer.py @@ -642,7 +642,10 @@ class ReviewSegmentMaintainer(threading.Thread): _, audio_detections, ) = data - elif topic == DetectionTypeEnum.api.value or DetectionTypeEnum.lpr.value: + elif ( + topic == DetectionTypeEnum.api.value + or topic == DetectionTypeEnum.lpr.value + ): ( camera, frame_time,