mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-12-12 08:06:42 +03:00
listen to correct topic in embeddings maintainer
This commit is contained in:
parent
8839f735f4
commit
36804de391
@ -524,12 +524,22 @@ class EmbeddingMaintainer(threading.Thread):
|
|||||||
def _process_recordings_updates(self) -> None:
|
def _process_recordings_updates(self) -> None:
|
||||||
"""Process recordings updates."""
|
"""Process recordings updates."""
|
||||||
while True:
|
while True:
|
||||||
recordings_data = self.recordings_subscriber.check_for_update()
|
update = self.recordings_subscriber.check_for_update()
|
||||||
|
|
||||||
if recordings_data == None:
|
if not update:
|
||||||
break
|
break
|
||||||
|
|
||||||
camera, recordings_available_through_timestamp = recordings_data
|
(raw_topic, payload) = update
|
||||||
|
|
||||||
|
if not raw_topic or not payload:
|
||||||
|
break
|
||||||
|
|
||||||
|
topic = str(raw_topic)
|
||||||
|
|
||||||
|
if topic.endswith(
|
||||||
|
RecordingsDataTypeEnum.recordings_available_through.value
|
||||||
|
):
|
||||||
|
camera, recordings_available_through_timestamp = payload
|
||||||
|
|
||||||
self.recordings_available_through[camera] = (
|
self.recordings_available_through[camera] = (
|
||||||
recordings_available_through_timestamp
|
recordings_available_through_timestamp
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user