mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-06 19:25:22 +03:00
Fix audio filter config
This commit is contained in:
parent
318ae28004
commit
8b1a6e02d1
@ -198,7 +198,7 @@ class AudioEventMaintainer(threading.Thread):
|
|||||||
if label not in self.config.audio.listen:
|
if label not in self.config.audio.listen:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if score > (self.config.audio.filters or {}).get(label, {}).get(
|
if score > dict((self.config.audio.filters or {}).get(label, {})).get(
|
||||||
"threshold", 0.8
|
"threshold", 0.8
|
||||||
):
|
):
|
||||||
self.handle_detection(label, score)
|
self.handle_detection(label, score)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user