mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
Fix nullability warnings in SpotifyTrackMatchingService
This commit is contained in:
@@ -330,7 +330,12 @@ public class JellyfinResponseBuilder
|
||||
["MediaStreams"] = new List<object>(), // Empty array instead of null
|
||||
["MediaAttachments"] = new List<object>(), // Empty array instead of null
|
||||
["Formats"] = new List<object>(), // Empty array instead of null
|
||||
["RunTimeTicks"] = (song.Duration ?? 180) * 10000000L // Duration in ticks (100ns units)
|
||||
["RequiredHttpHeaders"] = new Dictionary<string, string>(), // Empty dict instead of null
|
||||
["RunTimeTicks"] = (song.Duration ?? 180) * 10000000L, // Duration in ticks (100ns units)
|
||||
["Name"] = song.Title,
|
||||
["AnalyzeDurationMs"] = 0,
|
||||
["DefaultAudioStreamIndex"] = 0,
|
||||
["DefaultSubtitleStreamIndex"] = -1
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user