Remove use_experimental config as part of config migration (#11003)

* Remove experimental config as part of config migration

* Remove from config

* remove config from docs
This commit is contained in:
Nicolas Mowen
2024-04-17 06:02:59 -06:00
committed by GitHub
parent a87cca23ea
commit 392ff1319d
3 changed files with 12 additions and 14 deletions

View File

@@ -81,6 +81,12 @@ def migrate_014(config: dict[str, dict[str, any]]) -> dict[str, dict[str, any]]:
if not 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
if new_config.get("ffmpeg", {}).get("output_args", {}).get("rtmp"):
del new_config["ffmpeg"]["output_args"]["rtmp"]