Convert all Subsonic API ints to int32 as per specification (#2252)

* Fix Genre

* Fix ArtistID3

* Fix AlbumID3

* Fix Child

* Fix NowPlayingEntry

* Fix Playlist

* Fix Share

* Fix User

* Fix Artist

* Fix Directory

* Fix Error
This commit is contained in:
Deluan Quintão
2023-03-14 09:48:52 -04:00
committed by GitHub
parent 002cb4ed71
commit f7d4fcdcc1
9 changed files with 79 additions and 79 deletions
+2 -2
View File
@@ -165,9 +165,9 @@ func (api *Router) buildPlaylist(p model.Playlist) *responses.Playlist {
pls.Id = p.ID
pls.Name = p.Name
pls.Comment = p.Comment
pls.SongCount = p.SongCount
pls.SongCount = int32(p.SongCount)
pls.Owner = p.OwnerName
pls.Duration = int(p.Duration)
pls.Duration = int32(p.Duration)
pls.Public = p.Public
pls.Created = p.CreatedAt
pls.Changed = p.UpdatedAt