mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
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
This commit is contained in:
@@ -1640,6 +1640,16 @@ public class JellyfinController : ControllerBase
|
|||||||
return await ProxyRequest("web/index.html");
|
return await ProxyRequest("web/index.html");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Intercepts playlist items requests to inject Spotify playlist tracks.
|
||||||
|
/// </summary>
|
||||||
|
[HttpGet("Playlists/{playlistId}/Items", Order = 5)]
|
||||||
|
[HttpGet("playlists/{playlistId}/items", Order = 5)]
|
||||||
|
public async Task<IActionResult> GetPlaylistItems(string playlistId)
|
||||||
|
{
|
||||||
|
return await GetPlaylistTracks(playlistId);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Catch-all endpoint that proxies unhandled requests to Jellyfin transparently.
|
/// 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.
|
/// This route has the lowest priority and should only match requests that don't have SearchTerm.
|
||||||
|
|||||||
Reference in New Issue
Block a user