add some basic children counts

This commit is contained in:
sentriz
2019-06-07 17:29:57 +01:00
parent 188b52bc61
commit 266014da8b
5 changed files with 26 additions and 8 deletions

View File

@@ -61,8 +61,9 @@ func newTCTrackByFolder(t *model.Track, parent *model.Album) *subsonic.TrackChil
func newArtistByFolder(f *model.Album) *subsonic.Artist {
return &subsonic.Artist{
ID: f.ID,
Name: f.RightPath,
ID: f.ID,
Name: f.RightPath,
AlbumCount: f.ChildCount,
}
}