mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Remove live mode from config
This commit is contained in:
parent
23cfffcf71
commit
3b236d69a2
@ -645,8 +645,6 @@ cameras:
|
|||||||
|
|
||||||
# Optional
|
# Optional
|
||||||
ui:
|
ui:
|
||||||
# Optional: Set the default live mode for cameras in the UI (default: shown below)
|
|
||||||
live_mode: mse
|
|
||||||
# Optional: Set a timezone to use in the UI (default: use browser local time)
|
# Optional: Set a timezone to use in the UI (default: use browser local time)
|
||||||
# timezone: America/Denver
|
# timezone: America/Denver
|
||||||
# Optional: Set the time format used.
|
# Optional: Set the time format used.
|
||||||
|
|||||||
@ -87,8 +87,13 @@ 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"):
|
if new_config.get("ui"):
|
||||||
del new_config["ui"]["experimental"]
|
|
||||||
|
if new_config["ui"].get("use_experimental"):
|
||||||
|
del new_config["ui"]["experimental"]
|
||||||
|
|
||||||
|
if new_config["ui"].get("live_mode"):
|
||||||
|
del new_config["ui"]["live_mode"]
|
||||||
|
|
||||||
if not new_config["ui"]:
|
if not new_config["ui"]:
|
||||||
del new_config["ui"]
|
del new_config["ui"]
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import { IconName } from "@/components/icons/IconPicker";
|
import { IconName } from "@/components/icons/IconPicker";
|
||||||
import { LivePlayerMode } from "./live";
|
|
||||||
|
|
||||||
export interface UiConfig {
|
export interface UiConfig {
|
||||||
timezone?: string;
|
timezone?: string;
|
||||||
@ -7,8 +6,6 @@ export interface UiConfig {
|
|||||||
date_style?: "full" | "long" | "medium" | "short";
|
date_style?: "full" | "long" | "medium" | "short";
|
||||||
time_style?: "full" | "long" | "medium" | "short";
|
time_style?: "full" | "long" | "medium" | "short";
|
||||||
strftime_fmt?: string;
|
strftime_fmt?: string;
|
||||||
live_mode?: LivePlayerMode;
|
|
||||||
use_experimental?: boolean;
|
|
||||||
dashboard: boolean;
|
dashboard: boolean;
|
||||||
order: number;
|
order: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user