Formatting

This commit is contained in:
Nick Mowen 2023-05-20 10:07:57 -06:00
parent b1115fb2c9
commit 0111c57ff0
2 changed files with 9 additions and 2 deletions

View File

@ -69,7 +69,14 @@ class FrigateApp:
os.environ[key] = value os.environ[key] = value
def ensure_dirs(self) -> None: def ensure_dirs(self) -> None:
for d in [CONFIG_DIR, RECORD_DIR, CLIPS_DIR, CACHE_DIR, MODEL_CACHE_DIR, EXPORT_DIR]: for d in [
CONFIG_DIR,
RECORD_DIR,
CLIPS_DIR,
CACHE_DIR,
MODEL_CACHE_DIR,
EXPORT_DIR,
]:
if not os.path.exists(d) and not os.path.islink(d): if not os.path.exists(d) and not os.path.islink(d):
logger.info(f"Creating directory: {d}") logger.info(f"Creating directory: {d}")
os.makedirs(d) os.makedirs(d)

View File

@ -29,4 +29,4 @@ DRIVER_INTEL_iHD = "iHD"
MAX_SEGMENT_DURATION = 600 MAX_SEGMENT_DURATION = 600
SECONDS_IN_DAY = 60 * 60 * 24 SECONDS_IN_DAY = 60 * 60 * 24
MAX_PLAYLIST_SECONDS = 43200 # only support 12 hours per HLS playlist MAX_PLAYLIST_SECONDS = 43200 # only support 12 hours per HLS playlist