debug: add logging to verify Spotify IDs in cached playlist items
Some checks failed
CI / build-and-test (push) Has been cancelled

This commit is contained in:
2026-02-06 14:15:49 -05:00
parent c54503f486
commit 6ccc6a4a0d

View File

@@ -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,