mirror of
https://github.com/SoPat712/allstarr.git
synced 2026-02-09 23:55:10 -05:00
refactor: change external suffix from H to S (SquidWTF)
This commit is contained in:
@@ -304,11 +304,11 @@ public class JellyfinResponseBuilder
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, object?> ConvertAlbumToJellyfinItem(Album album)
|
public Dictionary<string, object?> ConvertAlbumToJellyfinItem(Album album)
|
||||||
{
|
{
|
||||||
// Add " - H" suffix to external album names (H = hifi-api)
|
// Add " - S" suffix to external album names (S = SquidWTF)
|
||||||
var albumName = album.Title;
|
var albumName = album.Title;
|
||||||
if (!album.IsLocal)
|
if (!album.IsLocal)
|
||||||
{
|
{
|
||||||
albumName = $"{album.Title} - H";
|
albumName = $"{album.Title} - S";
|
||||||
}
|
}
|
||||||
|
|
||||||
var item = new Dictionary<string, object?>
|
var item = new Dictionary<string, object?>
|
||||||
@@ -371,11 +371,11 @@ public class JellyfinResponseBuilder
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Dictionary<string, object?> ConvertArtistToJellyfinItem(Artist artist)
|
public Dictionary<string, object?> ConvertArtistToJellyfinItem(Artist artist)
|
||||||
{
|
{
|
||||||
// Add " - H" suffix to external artist names (H = hifi-api)
|
// Add " - S" suffix to external artist names (S = SquidWTF)
|
||||||
var artistName = artist.Name;
|
var artistName = artist.Name;
|
||||||
if (!artist.IsLocal)
|
if (!artist.IsLocal)
|
||||||
{
|
{
|
||||||
artistName = $"{artist.Name} - H";
|
artistName = $"{artist.Name} - S";
|
||||||
}
|
}
|
||||||
|
|
||||||
var item = new Dictionary<string, object?>
|
var item = new Dictionary<string, object?>
|
||||||
|
|||||||
Reference in New Issue
Block a user