From 1588b1a6b24a6a11d8c583c3c497151949aaf217 Mon Sep 17 00:00:00 2001
From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com>
Date: Mon, 9 Feb 2026 03:31:05 +0100
Subject: [PATCH] Add option to prefer local trailers over remote ones; update
configuration and UI
---
.../Configuration/PluginConfiguration.cs | 1 +
.../Configuration/configPage.html | 31 +++++++++-
.../Web/mediaBarEnhanced.js | 56 +++++++++++++++++--
3 files changed, 82 insertions(+), 6 deletions(-)
diff --git a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs
index a4a631c..725c5c2 100644
--- a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs
+++ b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/PluginConfiguration.cs
@@ -21,6 +21,7 @@ namespace Jellyfin.Plugin.MediaBarEnhanced.Configuration
public bool SlideAnimationEnabled { get; set; } = true;
public bool EnableVideoBackdrop { get; set; } = true;
public bool UseSponsorBlock { get; set; } = true;
+ public bool PreferLocalTrailers { 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 58111cf..b4eb512 100644
--- a/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html
+++ b/Jellyfin.Plugin.MediaBarEnhanced/Configuration/configPage.html
@@ -57,6 +57,14 @@
Show trailers as background if available.
Adds a
mute/unmute and pause/play button to control the video in the right top corner.
+
+
+
If enabled, local trailers will be preferred over remote (YouTube) trailers.
+