feat: add Trailer Pre-Roll and Feature Pre-Roll bumpers
All checks were successful
Publish Release / release (push) Successful in 14s

Adds two optional IIntroProvider bumper slots, mirroring CherryFloors'
cinema mode plugin: a "Trailer Pre-Roll" played before the trailer block
and a "Feature Pre-Roll" played right before the movie/episode. Each is
configured by picking an existing Jellyfin Movie library, from which a
random Movie is injected as the bumper.

Bump version to 1.0.0.5.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Martin
2026-06-10 01:13:52 -04:00
parent 18c3c49a26
commit a0bddac48d
6 changed files with 226 additions and 66 deletions

View File

@@ -68,5 +68,15 @@ namespace Jellyfin.Plugin.CinemaTrailers4Jellyfins.Configuration
/// <summary>Also inject trailers before TV episodes, but only before the first episode a user watches each day.</summary>
public bool TrailersForEpisodes { get; set; } = false;
// ── Pre-Roll Bumpers ─────────────────────────────────────────────────
/// <summary>Jellyfin movie library (VirtualFolder ItemId) to pick a random "Trailer Pre-Roll"
/// bumper from, played before the trailer block. Empty = disabled.</summary>
public string TrailerPreRollLibraryId { get; set; } = string.Empty;
/// <summary>Jellyfin movie library (VirtualFolder ItemId) to pick a random "Feature Pre-Roll"
/// bumper from, played after the trailer block, right before the feature. Empty = disabled.</summary>
public string FeaturePreRollLibraryId { get; set; } = string.Empty;
}
}