mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-25 18:55:25 -06: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
|
||||
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()):
|
||||
|
@ -53,7 +53,7 @@ class MqttBackend:
|
||||
json_message = json.loads(message)
|
||||
json_message = {
|
||||
"topic": f"{self.topic_prefix}/{json_message['topic']}",
|
||||
"payload": json_message.get["payload"],
|
||||
"payload": json_message["payload"],
|
||||
"retain": json_message.get("retain", False),
|
||||
}
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user