NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Fix case where S6 timestamp is missing (#12040)
Nicolas Mowenbdda89b5e2aa
diff --git a/frigate/api/app.py b/frigate/api/app.pyindex 787a087844..139b10d5b6 100644--- a/frigate/api/app.py+++ b/frigate/api/app.py@@ -481,9 +481,13 @@ def logs(service: str):for rawLine in contents.splitlines():cleanLine = rawLine.strip()- if len(cleanLine) < 10 or " " not in cleanLine:+ if len(cleanLine) < 10:continue+ # handle cases where S6 does not include date in log line+ if " " not in cleanLine:+ cleanLine = f"{datetime.now()} {cleanLine}"+if dateEnd == 0:dateEnd = cleanLine.index(" ")keyLength = dateEnd - (6 if service_location == "frigate" else 0)