NVR with realtime local object detection for IP cameras
TypeScript aicameragoogle-coralhome-assistanthome-automationhomeautomationmqttnvrobject-detectionrealtimertsptensorflow
Delete export if it fails (#8381)
Nicolas Mowen3d70d2967234
diff --git a/frigate/record/export.py b/frigate/record/export.pyindex f608853fc3..65ebf13c99 100644--- a/frigate/record/export.py+++ b/frigate/record/export.py@@ -6,6 +6,7 @@ import osimport subprocess as spimport threadingfrom enum import Enum+from pathlib import Pathfrom frigate.config import FrigateConfigfrom frigate.const import EXPORT_DIR, MAX_PLAYLIST_SECONDS@@ -121,6 +122,7 @@ class RecordingExporter(threading.Thread):f"Failed to export recording for command {' '.join(ffmpeg_cmd)}")logger.error(p.stderr)+ Path(file_name).unlink(missing_ok=True)returnlogger.debug(f"Updating finalized export {file_name}")