diff --git a/Jellyfin.Plugin.Template/.editorconfig b/.editorconfig similarity index 100% rename from Jellyfin.Plugin.Template/.editorconfig rename to .editorconfig diff --git a/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs index 3c38058..5ea6277 100644 --- a/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Template/Configuration/PluginConfiguration.cs @@ -7,19 +7,22 @@ namespace Jellyfin.Plugin.Template.Configuration OneOption, AnotherOption } + public class PluginConfiguration : BasePluginConfiguration { - //This is where you should store configurable settings your plugin might need. + // store configurable settings your plugin might need public bool TrueFalseSetting { get; set; } public int AnInteger { get; set; } public string AString { get; set; } public SomeOptions Options { get; set; } + public PluginConfiguration() { + // set default options here Options = SomeOptions.AnotherOption; TrueFalseSetting = true; - AnInteger = 5; - AString = "This is a string setting"; + AnInteger = 2; + AString = "string"; } } } diff --git a/Jellyfin.Plugin.Template/Configuration/configPage.html b/Jellyfin.Plugin.Template/Configuration/configPage.html index e6166b1..a6f18ff 100644 --- a/Jellyfin.Plugin.Template/Configuration/configPage.html +++ b/Jellyfin.Plugin.Template/Configuration/configPage.html @@ -1,7 +1,7 @@
- +