From 6e966f9e0d896aeef29081d0d86d3fbacafe48ee Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Wed, 4 Feb 2026 16:10:16 -0500 Subject: [PATCH] Fix nullability warnings in SpotifyTrackMatchingService --- allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs b/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs index 9f58939..0824155 100644 --- a/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs +++ b/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs @@ -330,7 +330,12 @@ public class JellyfinResponseBuilder ["MediaStreams"] = new List(), // Empty array instead of null ["MediaAttachments"] = new List(), // Empty array instead of null ["Formats"] = new List(), // Empty array instead of null - ["RunTimeTicks"] = (song.Duration ?? 180) * 10000000L // Duration in ticks (100ns units) + ["RequiredHttpHeaders"] = new Dictionary(), // Empty dict instead of null + ["RunTimeTicks"] = (song.Duration ?? 180) * 10000000L, // Duration in ticks (100ns units) + ["Name"] = song.Title, + ["AnalyzeDurationMs"] = 0, + ["DefaultAudioStreamIndex"] = 0, + ["DefaultSubtitleStreamIndex"] = -1 } }; }