mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-08 20:25:26 +03:00
Check for updates from all cameras
This commit is contained in:
parent
44813519a8
commit
ccacdc6a1b
@ -443,11 +443,14 @@ class RecordingMaintainer(threading.Thread):
|
||||
run_start = datetime.datetime.now().timestamp()
|
||||
|
||||
# check if there is an updated config
|
||||
updated_topic, updated_record_config = (
|
||||
self.config_subscriber.check_for_update()
|
||||
)
|
||||
while True:
|
||||
updated_topic, updated_record_config = (
|
||||
self.config_subscriber.check_for_update()
|
||||
)
|
||||
|
||||
if not updated_topic:
|
||||
break
|
||||
|
||||
if updated_topic:
|
||||
camera_name = updated_topic.rpartition("/")[-1]
|
||||
self.config.cameras[camera_name].record = updated_record_config
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user