From e873cfe3bfceaa95b1fc94114c7ff3cc0665f52a Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Sat, 31 Jan 2026 17:03:36 -0500 Subject: [PATCH] Fix JsonDocument.RootElement access in GetPlaylistTracks --- allstarr/Controllers/JellyfinController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allstarr/Controllers/JellyfinController.cs b/allstarr/Controllers/JellyfinController.cs index 445f1d8..97f72ea 100644 --- a/allstarr/Controllers/JellyfinController.cs +++ b/allstarr/Controllers/JellyfinController.cs @@ -1270,7 +1270,7 @@ public class JellyfinController : ControllerBase { // Get playlist info from Jellyfin to check the name var playlistInfo = await _proxyService.GetJsonAsync($"Items/{playlistId}", null, Request.Headers); - if (playlistInfo != null && playlistInfo.TryGetProperty("Name", out var nameElement)) + if (playlistInfo != null && playlistInfo.RootElement.TryGetProperty("Name", out var nameElement)) { var playlistName = nameElement.GetString() ?? "";