🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fix fields not being sent on getPlaylist.view responses.
caiocotts58218e6dc493
diff --git a/persistence/playlist_repository.go b/persistence/playlist_repository.goindex 0cae4b2b5..91efb9fa3 100644--- a/persistence/playlist_repository.go+++ b/persistence/playlist_repository.go@@ -345,11 +345,11 @@ func (r *playlistRepository) refreshCounters(pls *model.Playlist) error {func (r *playlistRepository) loadTracks(sel SelectBuilder, id string) (model.PlaylistTracks, error) {tracksQuery := sel.Columns(- "coalesce(starred, 0)",+ "coalesce(starred, 0) as starred","starred_at",- "coalesce(play_count, 0)",+ "coalesce(play_count, 0) as play_count","play_date",- "coalesce(rating, 0)",+ "coalesce(rating, 0) as rating","f.*","playlist_tracks.*",).diff --git a/persistence/playlist_track_repository.go b/persistence/playlist_track_repository.goindex fda3a1107..484e6fd0e 100644--- a/persistence/playlist_track_repository.go+++ b/persistence/playlist_track_repository.go@@ -51,9 +51,9 @@ func (r *playlistTrackRepository) Read(id string) (interface{}, error) {" AND annotation.item_type = 'media_file'"+" AND annotation.user_id = '"+userId(r.ctx)+"')").Columns(- "coalesce(starred, 0)",- "coalesce(play_count, 0)",- "coalesce(rating, 0)",+ "coalesce(starred, 0) as starred",+ "coalesce(play_count, 0) as play_count",+ "coalesce(rating, 0) as rating","starred_at","play_date","f.*",