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,