mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-08-04 13:47:37 +02:00
fixes
This commit is contained in:
parent
80f8256422
commit
1fbcf4d9b9
@ -110,7 +110,8 @@ class EventProcessor(threading.Thread):
|
|||||||
|
|
||||||
# if the earliest event is more tha max seconds ago, cap it
|
# if the earliest event is more tha max seconds ago, cap it
|
||||||
earliest_event = max(
|
earliest_event = max(
|
||||||
earliest_event, datetime.datetime.now().timestamp() - max_seconds
|
earliest_event,
|
||||||
|
datetime.datetime.now().timestamp() - self.config.clips.max_seconds,
|
||||||
)
|
)
|
||||||
|
|
||||||
for f, data in list(self.cached_clips.items()):
|
for f, data in list(self.cached_clips.items()):
|
||||||
|
@ -53,7 +53,7 @@ class MqttBackend:
|
|||||||
json_message = json.loads(message)
|
json_message = json.loads(message)
|
||||||
json_message = {
|
json_message = {
|
||||||
"topic": f"{self.topic_prefix}/{json_message['topic']}",
|
"topic": f"{self.topic_prefix}/{json_message['topic']}",
|
||||||
"payload": json_message.get["payload"],
|
"payload": json_message["payload"],
|
||||||
"retain": json_message.get("retain", False),
|
"retain": json_message.get("retain", False),
|
||||||
}
|
}
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user