Add duration and track_count to getArtist, getAlbum and getAlbumList2
This commit is contained in:
committed by
Senan Kelly
parent
606d761039
commit
df679a6ae3
@@ -13,6 +13,7 @@ func NewAlbumByTags(a *db.Album, artist *db.Artist) *Album {
|
||||
Name: a.TagTitle,
|
||||
Year: a.TagYear,
|
||||
TrackCount: a.ChildCount,
|
||||
Duration: a.Duration,
|
||||
}
|
||||
if a.TagGenre != nil {
|
||||
ret.Genre = a.TagGenre.Name
|
||||
|
||||
Reference in New Issue
Block a user