🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fix album fields in simulated browsing by folder
Deluan278d0ea8f38a
diff --git a/server/subsonic/helpers.go b/server/subsonic/helpers.goindex 5391037d9..4a5378e78 100644--- a/server/subsonic/helpers.go+++ b/server/subsonic/helpers.go@@ -231,12 +231,15 @@ func childFromAlbum(ctx context.Context, al model.Album) responses.Child {child := responses.Child{}child.Id = al.IDchild.IsDir = true+ child.Title = al.Namechild.Name = al.Name+ child.Album = al.Namechild.Artist = al.AlbumArtistchild.Year = al.MaxYearchild.Genre = al.Genrechild.CoverArt = al.CoverArtIdchild.Created = &al.CreatedAt+ child.Parent = al.AlbumArtistIDchild.ArtistId = al.AlbumArtistIDchild.Duration = int(al.Duration)child.SongCount = al.SongCount