Merge pull request #20 from SuperSandro2000/config-default-scheme

Set default supported schemas when no config file is provided
This commit is contained in:
Leonardo
2023-05-12 21:31:58 +02:00
committed by GitHub

View File

@@ -48,14 +48,15 @@ var defaultSupportedSchemas = []string{
var defaultConfig = Config{ var defaultConfig = Config{
Players: map[string]Player{ Players: map[string]Player{
"mpv": { "mpv": {
Name: "mpv", Name: "mpv",
Executable: "mpv", Executable: "mpv",
Fullscreen: "--fs", Fullscreen: "--fs",
Pip: `--ontop --no-border --autofit=384x216 --geometry=98%:98%`, Pip: `--ontop --no-border --autofit=384x216 --geometry=98%:98%`,
Enqueue: "", Enqueue: "",
NewWindow: "", NewWindow: "",
NeedsIpc: true, NeedsIpc: true,
FlagOverrides: map[string]string{}, SupportedSchemes: defaultSupportedSchemas,
FlagOverrides: map[string]string{},
}, },
}, },
} }