From 0c3cc8653591c677f91ba284fa7650481151976d Mon Sep 17 00:00:00 2001 From: Deluan Date: Mon, 23 Feb 2026 18:16:50 -0500 Subject: [PATCH] fix(subsonic): restore `public` attribute for playlists in XML responses This was causing issues with DSub and DSub2000 Signed-off-by: Deluan --- .../Responses Playlists with data should match .XML | 4 ++-- server/subsonic/responses/responses.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML index 759f7b52..38e0944c 100644 --- a/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML +++ b/server/subsonic/responses/.snapshots/Responses Playlists with data should match .XML @@ -1,7 +1,7 @@ - - + + diff --git a/server/subsonic/responses/responses.go b/server/subsonic/responses/responses.go index 8c4e330b..0fdbf1be 100644 --- a/server/subsonic/responses/responses.go +++ b/server/subsonic/responses/responses.go @@ -303,7 +303,7 @@ type Playlist struct { Comment string `xml:"comment,attr,omitempty" json:"comment,omitempty"` SongCount int32 `xml:"songCount,attr" json:"songCount"` Duration int32 `xml:"duration,attr" json:"duration"` - Public bool `xml:"public,attr,omitempty" json:"public,omitempty"` + Public bool `xml:"public,attr" json:"public,omitempty"` Owner string `xml:"owner,attr,omitempty" json:"owner,omitempty"` Created time.Time `xml:"created,attr" json:"created"` Changed time.Time `xml:"changed,attr" json:"changed"`