Add duration and track_count to getArtist, getAlbum and getAlbumList2

This commit is contained in:
Duncan Overbruck
2020-07-24 14:27:26 +02:00
committed by Senan Kelly
parent 606d761039
commit df679a6ae3
3 changed files with 11 additions and 2 deletions

View File

@@ -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