feat(subsonic): expose all of album "name"/"title"/"album" for browse by tag and browse by folder

related #404
This commit is contained in:
sentriz
2023-11-08 20:12:17 +00:00
parent 9bdfc492ce
commit 2df9052bf9
15 changed files with 286 additions and 282 deletions

View File

@@ -12,6 +12,8 @@ func NewAlbumByFolder(f *db.Album) *Album {
ID: f.SID(),
IsDir: true,
ParentID: f.ParentSID(),
Album: f.RightPath,
Name: f.RightPath,
Title: f.RightPath,
TrackCount: f.ChildCount,
Duration: f.Duration,

View File

@@ -11,7 +11,9 @@ func NewAlbumByTags(a *db.Album, artists []*db.Artist) *Album {
ret := &Album{
Created: a.CreatedAt,
ID: a.SID(),
Album: a.TagTitle,
Name: a.TagTitle,
Title: a.TagTitle,
Year: a.TagYear,
TrackCount: a.ChildCount,
Duration: a.Duration,