From b7379e2fd42f28bdcf97cd44bf061407bc4e040c Mon Sep 17 00:00:00 2001 From: Josh Patra Date: Tue, 3 Feb 2026 14:56:01 -0500 Subject: [PATCH] Change external track labeling from ' - S' to ' [S]' format - Updated album suffix from ' - S' to ' [S]' - Updated artist suffix from ' - S' to ' [S]' - Added song title suffix ' [S]' for external/streaming tracks - Cleaner bracket format is more visible and consistent --- .../Jellyfin/JellyfinResponseBuilder.cs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs b/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs index 806b503..277c1d9 100644 --- a/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs +++ b/allstarr/Services/Jellyfin/JellyfinResponseBuilder.cs @@ -231,10 +231,17 @@ public class JellyfinResponseBuilder /// public Dictionary ConvertSongToJellyfinItem(Song song) { + // Add " [S]" suffix to external song titles (S = streaming source) + var songTitle = song.Title; + if (!song.IsLocal) + { + songTitle = $"{song.Title} [S]"; + } + var item = new Dictionary { ["Id"] = song.Id, - ["Name"] = song.Title, + ["Name"] = songTitle, ["ServerId"] = "allstarr", ["Type"] = "Audio", ["MediaType"] = "Audio", @@ -330,11 +337,11 @@ public class JellyfinResponseBuilder /// public Dictionary ConvertAlbumToJellyfinItem(Album album) { - // Add " - S" suffix to external album names (S = SquidWTF) + // Add " [S]" suffix to external album names (S = streaming source) var albumName = album.Title; if (!album.IsLocal) { - albumName = $"{album.Title} - S"; + albumName = $"{album.Title} [S]"; } var item = new Dictionary @@ -397,11 +404,11 @@ public class JellyfinResponseBuilder /// public Dictionary ConvertArtistToJellyfinItem(Artist artist) { - // Add " - S" suffix to external artist names (S = SquidWTF) + // Add " [S]" suffix to external artist names (S = streaming source) var artistName = artist.Name; if (!artist.IsLocal) { - artistName = $"{artist.Name} - S"; + artistName = $"{artist.Name} [S]"; } var item = new Dictionary