Fix Spotify playlist injection: add dedicated route, startup fetch, and clarify config

This commit is contained in:
2026-01-31 16:57:52 -05:00
parent 4ba2245876
commit 2c3ef5c360
4 changed files with 58 additions and 7 deletions

View File

@@ -1210,6 +1210,17 @@ public class JellyfinController : ControllerBase
#region Playlists
/// <summary>
/// Intercepts playlist items requests to inject Spotify playlists.
/// This route must have lower Order than the catch-all ProxyRequest route.
/// </summary>
[HttpGet("Playlists/{playlistId}/Items", Order = 5)]
public async Task<IActionResult> GetPlaylistItems(string playlistId)
{
_logger.LogInformation("GetPlaylistItems called for playlist {PlaylistId}", playlistId);
return await GetPlaylistTracks(playlistId);
}
/// <summary>
/// Gets playlist tracks displayed as an album.
/// </summary>