From 66ed5358eebc205f5573e1af57808f3d2f5f7a87 Mon Sep 17 00:00:00 2001 From: IAmParadox27 Date: Sun, 2 Mar 2025 17:19:11 +0000 Subject: [PATCH] Added support for avatars/list.txt to be served from a playlist. Added an option to use the physical file or the playlist, and a text box to name the playlist. --- .../Configuration/PluginConfiguration.cs | 4 ++ .../Configuration/config.html | 22 ++++++ .../Controllers/MediaBarController.cs | 19 +++++- .../Helpers/TransformationPatches.cs | 67 +++++++++++++++++++ .../MediaBarPlugin.cs | 5 +- .../Services/StartupService.cs | 24 ++++++- 6 files changed, 137 insertions(+), 4 deletions(-) diff --git a/src/Jellyfin.Plugin.MediaBar/Configuration/PluginConfiguration.cs b/src/Jellyfin.Plugin.MediaBar/Configuration/PluginConfiguration.cs index 28117ae..e9fbbd7 100644 --- a/src/Jellyfin.Plugin.MediaBar/Configuration/PluginConfiguration.cs +++ b/src/Jellyfin.Plugin.MediaBar/Configuration/PluginConfiguration.cs @@ -11,5 +11,9 @@ namespace Jellyfin.Plugin.MediaBar.Configuration public class PluginConfiguration : BasePluginConfiguration { public MediaBarState Enabled { get; set; } = MediaBarState.Enabled; + + public bool UseAvatarsFile { get; set; } = true; + + public string AvatarsPlaylist { get; set; } = string.Empty; } } \ No newline at end of file diff --git a/src/Jellyfin.Plugin.MediaBar/Configuration/config.html b/src/Jellyfin.Plugin.MediaBar/Configuration/config.html index a1298fb..b86fc59 100644 --- a/src/Jellyfin.Plugin.MediaBar/Configuration/config.html +++ b/src/Jellyfin.Plugin.MediaBar/Configuration/config.html @@ -28,6 +28,24 @@ Whether the media bar should appear or not. +
+ +
If checked, the plugin will look for a list.txt file in the avatars directory at the root of jellyfin-web.
+
+
+ + + +
If populated, and "Use physical avatars file" is disabled, this is the name of the playlist which is used to populate the media bar.
+ If empty, the media bar will randomly populate.
+