mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
debug: add logging to verify Spotify IDs in cached playlist items
Some checks failed
CI / build-and-test (push) Has been cancelled
Some checks failed
CI / build-and-test (push) Has been cancelled
This commit is contained in:
@@ -3270,6 +3270,14 @@ public class JellyfinController : ControllerBase
|
|||||||
_logger.LogInformation("✅ Loaded {Count} playlist items from Redis cache for {Playlist}",
|
_logger.LogInformation("✅ Loaded {Count} playlist items from Redis cache for {Playlist}",
|
||||||
cachedItems.Count, spotifyPlaylistName);
|
cachedItems.Count, spotifyPlaylistName);
|
||||||
|
|
||||||
|
// Log sample item to verify Spotify IDs are present
|
||||||
|
if (cachedItems.Count > 0 && cachedItems[0].ContainsKey("ProviderIds"))
|
||||||
|
{
|
||||||
|
var providerIds = cachedItems[0]["ProviderIds"] as Dictionary<string, object>;
|
||||||
|
var hasSpotifyId = providerIds?.ContainsKey("Spotify") ?? false;
|
||||||
|
_logger.LogDebug("Sample cached item has Spotify ID: {HasSpotifyId}", hasSpotifyId);
|
||||||
|
}
|
||||||
|
|
||||||
return new JsonResult(new
|
return new JsonResult(new
|
||||||
{
|
{
|
||||||
Items = cachedItems,
|
Items = cachedItems,
|
||||||
|
|||||||
Reference in New Issue
Block a user