From 87943ea863f5e882ff4acfe329d6dde674ac630b Mon Sep 17 00:00:00 2001 From: Senan Kelly Date: Wed, 17 Jan 2024 19:13:34 +0000 Subject: [PATCH] fix(subsonic): always return playlist duration fixes #457 --- server/ctrlsubsonic/spec/spec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/ctrlsubsonic/spec/spec.go b/server/ctrlsubsonic/spec/spec.go index c2a0de0c..d48d92ee 100644 --- a/server/ctrlsubsonic/spec/spec.go +++ b/server/ctrlsubsonic/spec/spec.go @@ -311,7 +311,7 @@ type Playlist struct { SongCount int `xml:"songCount,attr" json:"songCount"` Created time.Time `xml:"created,attr" json:"created"` Changed time.Time `xml:"changed,attr" json:"changed"` - Duration int `xml:"duration,attr" json:"duration,omitempty"` + Duration int `xml:"duration,attr" json:"duration"` Public bool `xml:"public,attr" json:"public,omitempty"` List []*TrackChild `xml:"entry,omitempty" json:"entry,omitempty"` }