diff --git a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html index f08277d..7fe1a2e 100644 --- a/Jellyfin.Plugin.Seasonals/Configuration/configPage.html +++ b/Jellyfin.Plugin.Seasonals/Configuration/configPage.html @@ -40,6 +40,14 @@ + + + + + + + +
The season to display if automation is disabled.
@@ -55,23 +63,23 @@
-
Enable the autumn theme effects in general.
+
Enable the autumn theme effects in general (e.g. for automation).
-
Displays leaves randomly distributed across the screen
+
Displays additional leaves randomly distributed across the screen
-
Displays leaves randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
+
Displays additional leaves randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
@@ -100,23 +108,23 @@
-
Enable the snowflakes theme in general.
+
Enable the snowflakes theme in general (e.g. for automation).
-
Displays snowflakes randomly distributed across the screen.
+
Displays additional snowflakes randomly distributed across the screen.
-
Displays snowflakes randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
+
Displays additional snowflakes randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
@@ -145,9 +153,9 @@
-
Enable the snowfall effect in general.
+
Enable the snowfall effect in general (e.g. for automation).
@@ -172,9 +180,9 @@
-
Enable the snowstorm effect in general.
+
Enable the snowstorm effect in general (e.g. for automation).
@@ -209,9 +217,9 @@
-
Enable the fireworks effect in general.
+
Enable the fireworks effect in general (e.g. for automation).
@@ -248,23 +256,23 @@
-
Enable the Halloween theme in general.
+
Enable the Halloween theme in general (e.g. for automation).
-
Displays Halloween symbols randomly distributed across the screen.
+
Displays additional Halloween symbols randomly distributed across the screen.
-
Displays Halloween symbols randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
+
Displays additional Halloween symbols randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
@@ -286,23 +294,23 @@
-
Enable the Hearts theme in general.
+
Enable the Hearts theme in general (e.g. for automation).
-
Displays hearts randomly distributed across the screen.
+
Displays additional hearts randomly distributed across the screen.
-
Displays hearts randomly distributed across the screen. on mobile devices. Warning: High values may affect performance.
+
Displays additional hearts randomly distributed across the screen. on mobile devices. Warning: High values may affect performance.
@@ -324,23 +332,23 @@
-
Enable the Christmas theme in general.
+
Enable the Christmas theme in general (e.g. for automation).
-
Displays Christmas-themed icons randomly distributed across the screen.
+
Displays additional Christmas-themed icons randomly distributed across the screen.
-
Displays Christmas-themed icons randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
+
Displays additional Christmas-themed icons randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
@@ -362,9 +370,9 @@
-
Enable the Santa theme in general.
+
Enable the Santa theme in general (e.g. for automation).
@@ -419,23 +427,23 @@
-
Enable the Easter theme in general.
+
Enable the Easter theme in general (e.g. for automation).
-
Displays easter eggs randomly distributed across the screen.
+
Displays additional easter eggs randomly distributed across the screen.
-
Displays easter eggs randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
+
Displays additional easter eggs randomly distributed across the screen on mobile devices. Warning: High values may affect performance.
diff --git a/Jellyfin.Plugin.Seasonals/ScriptInjector.cs b/Jellyfin.Plugin.Seasonals/ScriptInjector.cs index b926844..6a65fe7 100644 --- a/Jellyfin.Plugin.Seasonals/ScriptInjector.cs +++ b/Jellyfin.Plugin.Seasonals/ScriptInjector.cs @@ -13,7 +13,7 @@ public class ScriptInjector { private readonly IApplicationPaths _appPaths; private readonly ILogger _logger; - private const string ScriptTag = ""; + private const string ScriptTag = ""; private const string Marker = ""; /// diff --git a/Jellyfin.Plugin.Seasonals/Web/seasonals.js b/Jellyfin.Plugin.Seasonals/Web/seasonals.js index 08f4513..03b4ad5 100644 --- a/Jellyfin.Plugin.Seasonals/Web/seasonals.js +++ b/Jellyfin.Plugin.Seasonals/Web/seasonals.js @@ -121,6 +121,7 @@ function loadThemeJS(jsPath) { const script = document.createElement('script'); script.src = jsPath; + script.defer = true; script.onerror = () => { console.error(`Failed to load JS: ${jsPath}`); @@ -201,9 +202,5 @@ async function initializeTheme() { removeSelf(); } -// Ensure DOM is ready before initializing -if (document.readyState === 'loading') { - document.addEventListener('DOMContentLoaded', initializeTheme); -} else { - initializeTheme(); -} \ No newline at end of file + +initializeTheme(); diff --git a/bin/Publish/Jellyfin.Plugin.Seasonals.dll b/bin/Publish/Jellyfin.Plugin.Seasonals.dll index 90dd98c..4858d64 100644 Binary files a/bin/Publish/Jellyfin.Plugin.Seasonals.dll and b/bin/Publish/Jellyfin.Plugin.Seasonals.dll differ diff --git a/bin/Publish/Jellyfin.Plugin.Seasonals.pdb b/bin/Publish/Jellyfin.Plugin.Seasonals.pdb index bf5ad0e..e113a4c 100644 Binary files a/bin/Publish/Jellyfin.Plugin.Seasonals.pdb and b/bin/Publish/Jellyfin.Plugin.Seasonals.pdb differ diff --git a/bin/Publish/Jellyfin.Plugin.Seasonals.zip b/bin/Publish/Jellyfin.Plugin.Seasonals.zip index b2b9f21..e1847b3 100644 Binary files a/bin/Publish/Jellyfin.Plugin.Seasonals.zip and b/bin/Publish/Jellyfin.Plugin.Seasonals.zip differ diff --git a/manifest.json b/manifest.json index d4fe9aa..770a0a0 100644 --- a/manifest.json +++ b/manifest.json @@ -8,6 +8,14 @@ "category": "General", "imageUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/raw/branch/main/logo.png", "versions": [ + { + "version": "1.3.4.0", + "changelog": "- some fixes for js loading\n- adapted config page descriptions", + "targetAbi": "10.11.0.0", + "sourceUrl": "https://git.mahom03-spacecloud.de/CodeDevMLH/Jellyfin-Seasonals-Plugin/releases/download/v1.3.4.0/Jellyfin.Plugin.Seasonals.zip", + "checksum": "4985ef202d93fa3287673daf4ab70360", + "timestamp": "2025-12-24T01:41:26Z" + }, { "version": "1.3.3.0", "changelog": "- fixed: load config",