Add more OpenSubsonic fields

- isCompilation
- sortName
This commit is contained in:
Deluan
2023-11-28 21:26:00 -05:00
parent f580c5b8bc
commit cdccdc56c9
28 changed files with 75 additions and 44 deletions
+2
View File
@@ -432,6 +432,8 @@ func (api *Router) buildAlbum(ctx context.Context, album *model.Album, mfs model
dir.Starred = &album.StarredAt
}
dir.MusicBrainzId = album.MbzAlbumID
dir.IsCompilation = album.Compilation
dir.SortName = album.SortAlbumName
dir.Song = childrenFromMediaFiles(ctx, mfs)
return dir
}