mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 04:35:25 +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()
|
run_start = datetime.datetime.now().timestamp()
|
||||||
|
|
||||||
# check if there is an updated config
|
# check if there is an updated config
|
||||||
updated_topic, updated_record_config = (
|
while True:
|
||||||
self.config_subscriber.check_for_update()
|
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]
|
camera_name = updated_topic.rpartition("/")[-1]
|
||||||
self.config.cameras[camera_name].record = updated_record_config
|
self.config.cameras[camera_name].record = updated_record_config
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user