mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 05:35:25 +03:00
Remove experimental config as part of config migration
This commit is contained in:
parent
ff823b87c8
commit
f1871aa446
@ -81,6 +81,12 @@ def migrate_014(config: dict[str, dict[str, any]]) -> dict[str, dict[str, any]]:
|
|||||||
if not new_config["record"]:
|
if not new_config["record"]:
|
||||||
del new_config["record"]
|
del new_config["record"]
|
||||||
|
|
||||||
|
if new_config.get("ui", {}).get("use_experimental"):
|
||||||
|
del new_config["ui"]["experimental"]
|
||||||
|
|
||||||
|
if not new_config["ui"]:
|
||||||
|
del new_config["ui"]
|
||||||
|
|
||||||
# remove rtmp
|
# remove rtmp
|
||||||
if new_config.get("ffmpeg", {}).get("output_args", {}).get("rtmp"):
|
if new_config.get("ffmpeg", {}).get("output_args", {}).get("rtmp"):
|
||||||
del new_config["ffmpeg"]["output_args"]["rtmp"]
|
del new_config["ffmpeg"]["output_args"]["rtmp"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user