mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
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:
@@ -231,10 +231,17 @@ public class JellyfinResponseBuilder
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, object?> ConvertSongToJellyfinItem(Song song)
|
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?>
|
var item = new Dictionary<string, object?>
|
||||||
{
|
{
|
||||||
["Id"] = song.Id,
|
["Id"] = song.Id,
|
||||||
["Name"] = song.Title,
|
["Name"] = songTitle,
|
||||||
["ServerId"] = "allstarr",
|
["ServerId"] = "allstarr",
|
||||||
["Type"] = "Audio",
|
["Type"] = "Audio",
|
||||||
["MediaType"] = "Audio",
|
["MediaType"] = "Audio",
|
||||||
@@ -330,11 +337,11 @@ public class JellyfinResponseBuilder
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, object?> ConvertAlbumToJellyfinItem(Album album)
|
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;
|
var albumName = album.Title;
|
||||||
if (!album.IsLocal)
|
if (!album.IsLocal)
|
||||||
{
|
{
|
||||||
albumName = $"{album.Title} - S";
|
albumName = $"{album.Title} [S]";
|
||||||
}
|
}
|
||||||
|
|
||||||
var item = new Dictionary<string, object?>
|
var item = new Dictionary<string, object?>
|
||||||
@@ -397,11 +404,11 @@ public class JellyfinResponseBuilder
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, object?> ConvertArtistToJellyfinItem(Artist artist)
|
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;
|
var artistName = artist.Name;
|
||||||
if (!artist.IsLocal)
|
if (!artist.IsLocal)
|
||||||
{
|
{
|
||||||
artistName = $"{artist.Name} - S";
|
artistName = $"{artist.Name} [S]";
|
||||||
}
|
}
|
||||||
|
|
||||||
var item = new Dictionary<string, object?>
|
var item = new Dictionary<string, object?>
|
||||||
|
|||||||
Reference in New Issue
Block a user