From cd29e0de6c6099e1a4f9ebfc4c20720cc66542b1 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Sat, 31 Jan 2026 17:21:14 -0500 Subject: [PATCH] Add debug logging to diagnose Spotify configuration issue --- allstarr/Controllers/JellyfinController.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/allstarr/Controllers/JellyfinController.cs b/allstarr/Controllers/JellyfinController.cs index 3a960e5..7c15a97 100644 --- a/allstarr/Controllers/JellyfinController.cs +++ b/allstarr/Controllers/JellyfinController.cs @@ -1702,6 +1702,17 @@ public class JellyfinController : ControllerBase [HttpPost("{**path}", Order = 100)] public async Task ProxyRequest(string path) { + // DEBUG: Log Spotify settings for playlist requests + if (path.Contains("playlist", StringComparison.OrdinalIgnoreCase)) + { + _logger.LogWarning("=== PLAYLIST REQUEST DEBUG ==="); + _logger.LogWarning("Path: {Path}", path); + _logger.LogWarning("Spotify Enabled: {Enabled}", _spotifySettings.Enabled); + _logger.LogWarning("Starts with 'playlists/': {StartsWith}", path.StartsWith("playlists/", StringComparison.OrdinalIgnoreCase)); + _logger.LogWarning("Contains '/items': {Contains}", path.Contains("/items", StringComparison.OrdinalIgnoreCase)); + _logger.LogWarning("Playlists count: {Count}", _spotifySettings.Playlists.Count); + } + // Intercept Spotify playlist requests FIRST if (_spotifySettings.Enabled && path.StartsWith("playlists/", StringComparison.OrdinalIgnoreCase) &&