From 6ccc6a4a0d30f7263859f9a2b9d67a3d8f0cdb39 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Fri, 6 Feb 2026 14:15:49 -0500 Subject: [PATCH] debug: add logging to verify Spotify IDs in cached playlist items --- allstarr/Controllers/JellyfinController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/allstarr/Controllers/JellyfinController.cs b/allstarr/Controllers/JellyfinController.cs index 5e84437..276be23 100644 --- a/allstarr/Controllers/JellyfinController.cs +++ b/allstarr/Controllers/JellyfinController.cs @@ -3270,6 +3270,14 @@ public class JellyfinController : ControllerBase _logger.LogInformation("✅ Loaded {Count} playlist items from Redis cache for {Playlist}", 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; + var hasSpotifyId = providerIds?.ContainsKey("Spotify") ?? false; + _logger.LogDebug("Sample cached item has Spotify ID: {HasSpotifyId}", hasSpotifyId); + } + return new JsonResult(new { Items = cachedItems,