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
This commit is contained in:
2026-02-03 14:56:01 -05:00
parent c9895f6d1a
commit b7379e2fd4

View File

@@ -231,10 +231,17 @@ public class JellyfinResponseBuilder
/// </summary>
public Dictionary<string, object?> 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<string, object?>
{
["Id"] = song.Id,
["Name"] = song.Title,
["Name"] = songTitle,
["ServerId"] = "allstarr",
["Type"] = "Audio",
["MediaType"] = "Audio",
@@ -330,11 +337,11 @@ public class JellyfinResponseBuilder
/// </summary>
public Dictionary<string, object?> 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<string, object?>
@@ -397,11 +404,11 @@ public class JellyfinResponseBuilder
/// </summary>
public Dictionary<string, object?> 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<string, object?>