From 619d8533d22c47f282bbcc6b862d54a1a8b05e0c Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Sun, 15 Feb 2026 00:31:01 +0100 Subject: [PATCH] Add configuration options for local backdrops and randomization features --- .../Configuration/PluginConfiguration.cs | 3 + .../Configuration/configPage.html | 33 ++++++- .../Web/mediaBarEnhanced.js | 91 ++++++++++++++++--- 3 files changed, 110 insertions(+), 17 deletions(-) diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs index d205d14..8eb4f98 100644 --- a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs +++ b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs @@ -22,6 +22,9 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Configuration public bool EnableVideoBackdrop { get; set; } = true; public bool UseSponsorBlock { get; set; } = true; public bool PreferLocalTrailers { get; set; } = false; + public bool RandomizeLocalTrailers { get; set; } = false; + public bool PreferLocalBackdrops { get; set; } = false; + public bool RandomizeThemeVideos { get; set; } = false; public bool WaitForTrailerToEnd { get; set; } = true; public bool StartMuted { get; set; } = true; public bool FullWidthVideo { get; set; } = true; diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html index 4db45f9..a52c8fe 100644 --- a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html +++ b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html @@ -65,6 +65,14 @@
If enabled, local trailers will be preferred over remote (YouTube) trailers.
+
+ +
If enabled, local backdrop videos (Theme Videos) will be preferred over trailers.
+
+
+ +
If enabled, a random video from the backdrops/theme videos will be selected instead of the first one.
+
+
+ +
If enabled, a random local trailer will be selected instead of the first one (if multiple exist).
+