mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-05 18:55:23 +03:00
Fix access
This commit is contained in:
parent
a1d2f98765
commit
9449808ffe
@ -201,7 +201,10 @@ class AudioEventMaintainer(threading.Thread):
|
||||
if label not in self.config.audio.listen:
|
||||
continue
|
||||
|
||||
if score > self.config.audio.filters.get(label, {}).get("threshold", 0):
|
||||
filter = self.config.audio.filters
|
||||
if filter is None or score > filter.get(label, {}).get(
|
||||
"threshold", 0.8
|
||||
):
|
||||
self.handle_detection(label, score)
|
||||
|
||||
self.expire_detections()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user