From 51694a395d6039581e192efa084c02cbeafdc935 Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Sat, 31 Jan 2026 17:09:28 -0500 Subject: [PATCH] Add comprehensive debug logging for Spotify playlist interception --- allstarr/Controllers/JellyfinController.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/allstarr/Controllers/JellyfinController.cs b/allstarr/Controllers/JellyfinController.cs index 93e261f..5579645 100644 --- a/allstarr/Controllers/JellyfinController.cs +++ b/allstarr/Controllers/JellyfinController.cs @@ -1659,6 +1659,19 @@ public class JellyfinController : ControllerBase [HttpPost("{**path}", Order = 100)] public async Task ProxyRequest(string path) { + // Log all playlist requests for debugging + if (path.Contains("playlist", StringComparison.OrdinalIgnoreCase)) + { + _logger.LogInformation("=== PLAYLIST REQUEST === Path: {Path}, SpotifyEnabled: {Enabled}, PlaylistCount: {Count}", + path, _spotifySettings.Enabled, _spotifySettings.Playlists.Count); + + foreach (var p in _spotifySettings.Playlists) + { + _logger.LogInformation(" Configured playlist: {Name} (SpotifyName: {SpotifyName}, Enabled: {Enabled})", + p.Name, p.SpotifyName, p.Enabled); + } + } + // Intercept Spotify playlist requests if (_spotifySettings.Enabled && path.StartsWith("playlists/", StringComparison.OrdinalIgnoreCase) &&