Fix child.size and directory.playCount compatibility with Subsonic API. Fixes #304

This commit is contained in:
Deluan
2020-05-19 23:50:27 -04:00
parent c2d1e9df9f
commit 17df63b550
12 changed files with 17 additions and 18 deletions
+1 -1
View File
@@ -229,7 +229,7 @@ func (c *BrowsingController) buildAlbum(ctx context.Context, d *engine.Directory
dir.CoverArt = d.CoverArt
dir.SongCount = d.SongCount
dir.Duration = d.Duration
dir.PlayCount = int64(d.PlayCount)
dir.PlayCount = d.PlayCount
dir.Year = d.Year
dir.Genre = d.Genre
if !d.Created.IsZero() {