From c43f031617b957538ebfea7ad4a3c1a262c827aa Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Sat, 28 Feb 2026 01:19:09 +0100 Subject: [PATCH] Refactor autumn configuration to enhance leaf count settings for mobile and desktop --- .../Configuration/PluginConfiguration.cs | 28 ++++++++----------- Jellyfin.Plugin.Seasonals/Web/autumn.js | 2 +- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs index 30df521..28c2fbd 100644 --- a/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.Seasonals/Configuration/PluginConfiguration.cs @@ -120,10 +120,9 @@ public class PluginConfiguration : BasePluginConfiguration } public class AutumnOptions { - public int LeafCount { get; set; } = 25; public bool EnableAutumn { get; set; } = true; - public bool EnableRandomLeaves { get; set; } = true; - public bool EnableRandomLeavesMobile { get; set; } = false; + public int LeafCount { get; set; } = 35; + public int LeafCountMobile { get; set; } = 10; public bool EnableDifferentDuration { get; set; } = true; public bool EnableRotation { get; set; } = false; } @@ -153,10 +152,9 @@ public class CherryBlossomOptions { public class ChristmasOptions { public bool EnableChristmas { get; set; } = true; - public bool EnableRandomChristmas { get; set; } = true; - public bool EnableRandomChristmasMobile { get; set; } = false; - public bool EnableDifferentDuration { get; set; } = true; public int SymbolCount { get; set; } = 25; + public int SymbolCountMobile { get; set; } = 10; + public bool EnableDifferentDuration { get; set; } = true; } public class EarthDayOptions { @@ -210,20 +208,18 @@ public class FrostOptions { public class HalloweenOptions { public bool EnableHalloween { get; set; } = true; - public bool EnableRandomSymbols { get; set; } = true; - public bool EnableRandomSymbolsMobile { get; set; } = false; + public int SymbolCount { get; set; } = 25; + public int SymbolCountMobile { get; set; } = 10; public bool EnableDifferentDuration { get; set; } = true; public bool EnableSpiders { get; set; } = true; public bool EnableMice { get; set; } = true; - public int SymbolCount { get; set; } = 25; } public class HeartsOptions { public bool EnableHearts { get; set; } = true; - public bool EnableRandomSymbols { get; set; } = true; - public bool EnableRandomSymbolsMobile { get; set; } = false; - public bool EnableDifferentDuration { get; set; } = true; public int SymbolCount { get; set; } = 25; + public int SymbolCountMobile { get; set; } = 10; + public bool EnableDifferentDuration { get; set; } = true; } public class MarioDayOptions { @@ -272,10 +268,9 @@ public class RainOptions { public class ResurrectionOptions { public bool EnableResurrection { get; set; } = true; - public bool EnableRandomSymbols { get; set; } = true; - public bool EnableRandomSymbolsMobile { get; set; } = false; - public bool EnableDifferentDuration { get; set; } = true; public int SymbolCount { get; set; } = 12; + public int SymbolCountMobile { get; set; } = 5; + public bool EnableDifferentDuration { get; set; } = true; } public class SantaOptions { @@ -301,8 +296,7 @@ public class SnowfallOptions { public class SnowflakesOptions { public bool EnableSnowflakes { get; set; } = true; public int SnowflakeCount { get; set; } = 25; - public bool EnableRandomSnowflakes { get; set; } = true; - public bool EnableRandomSnowflakesMobile { get; set; } = false; + public int SnowflakeCountMobile { get; set; } = 10; public bool EnableColoredSnowflakes { get; set; } = true; public bool EnableDifferentDuration { get; set; } = true; } diff --git a/Jellyfin.Plugin.Seasonals/Web/autumn.js b/Jellyfin.Plugin.Seasonals/Web/autumn.js index d04a920..8012951 100644 --- a/Jellyfin.Plugin.Seasonals/Web/autumn.js +++ b/Jellyfin.Plugin.Seasonals/Web/autumn.js @@ -3,7 +3,7 @@ const config = window.SeasonalsPluginConfig?.Autumn || {}; const leaves = config.EnableAutumn !== undefined ? config.EnableAutumn : true; // enable/disable autumn const enableDiffrentDuration = config.EnableDifferentDuration !== undefined ? config.EnableDifferentDuration : true; // enable different durations const enableRotation = config.EnableRotation !== undefined ? config.EnableRotation : false; // enable/disable rotation -const leafCount = config.LeafCount !== undefined ? config.LeafCount : 25; // count of random extra leaves +const leafCount = config.LeafCount !== undefined ? config.LeafCount : 35; // count of random extra leaves const leafCountMobile = config.LeafCountMobile !== undefined ? config.LeafCountMobile : 10; // count of random extra leaves on mobile const images = [