Placard 1.0.0 — bake library names onto backdrops
Jellyfin 10.11 plugin: a scheduled task that labels each library card with the library name over a representative backdrop (Noto Sans, centered, soft shadow), matching Jellyfin's default cover style. Supports source rules (top-rated / random / newest) and per-library pinned sources. Sets images via the internal provider API so the home-screen view cache updates without a server restart.
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using MediaBrowser.Model.Plugins;
|
||||
|
||||
namespace Jellyfin.Plugin.Placard.Configuration;
|
||||
|
||||
/// <summary>Rule for picking which child item's backdrop represents a library.</summary>
|
||||
public enum SourceRule
|
||||
{
|
||||
TopRated = 0,
|
||||
Random = 1,
|
||||
Newest = 2
|
||||
}
|
||||
|
||||
public class PluginConfiguration : BasePluginConfiguration
|
||||
{
|
||||
/// <summary>Master on/off.</summary>
|
||||
public bool Enabled { get; set; } = true;
|
||||
|
||||
/// <summary>How to choose the source backdrop for each library.</summary>
|
||||
public SourceRule Source { get; set; } = SourceRule.TopRated;
|
||||
|
||||
/// <summary>Darkening overlay opacity, 0-255 (default ~41%).</summary>
|
||||
public int ScrimOpacity { get; set; } = 105;
|
||||
|
||||
/// <summary>Label height as a percent of image height.</summary>
|
||||
public int FontHeightPercent { get; set; } = 20;
|
||||
|
||||
/// <summary>Also label Live TV (SMPTE color bars) and Playlists.</summary>
|
||||
public bool IncludeSpecialViews { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// Per-library pinned source titles, one per line as "Library Name=Item Title".
|
||||
/// A pinned library uses that item's backdrop instead of the <see cref="Source"/> rule.
|
||||
/// </summary>
|
||||
public string PinnedSources { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user