From c117fa41f64da5d6779630bda8ed794a0019ba67 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Sat, 31 Jan 2026 16:54:01 -0500 Subject: [PATCH] fix: add route to intercept playlist items requests - Add GetPlaylistItems route with Order=5 (before catch-all) - Intercepts /playlists/{id}/items requests - Routes to GetPlaylistTracks for Spotify playlist handling --- allstarr/Controllers/JellyfinController.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/allstarr/Controllers/JellyfinController.cs b/allstarr/Controllers/JellyfinController.cs index 026d042..d55a0a0 100644 --- a/allstarr/Controllers/JellyfinController.cs +++ b/allstarr/Controllers/JellyfinController.cs @@ -1640,6 +1640,16 @@ public class JellyfinController : ControllerBase return await ProxyRequest("web/index.html"); } + /// + /// Intercepts playlist items requests to inject Spotify playlist tracks. + /// + [HttpGet("Playlists/{playlistId}/Items", Order = 5)] + [HttpGet("playlists/{playlistId}/items", Order = 5)] + public async Task GetPlaylistItems(string playlistId) + { + return await GetPlaylistTracks(playlistId); + } + /// /// Catch-all endpoint that proxies unhandled requests to Jellyfin transparently. /// This route has the lowest priority and should only match requests that don't have SearchTerm.