diff --git a/server/ctrlsubsonic/spec/construct.go b/server/ctrlsubsonic/spec/construct.go index a266af8..c8ebd24 100644 --- a/server/ctrlsubsonic/spec/construct.go +++ b/server/ctrlsubsonic/spec/construct.go @@ -9,7 +9,7 @@ func NewPlaylist(p *db.Playlist) *Playlist { ID: p.ID, Name: p.Name, Comment: p.Comment, - Duration: "1", + Duration: 1, Public: true, Created: p.CreatedAt, } diff --git a/server/ctrlsubsonic/spec/spec.go b/server/ctrlsubsonic/spec/spec.go index 4a2fe35..10eb1af 100644 --- a/server/ctrlsubsonic/spec/spec.go +++ b/server/ctrlsubsonic/spec/spec.go @@ -233,7 +233,7 @@ type Playlist struct { Owner string `xml:"owner,attr" json:"owner"` SongCount int `xml:"songCount,attr" json:"songCount"` Created time.Time `xml:"created,attr" json:"created"` - Duration string `xml:"duration,attr" json:"duration,omitempty"` + Duration int `xml:"duration,attr" json:"duration,omitempty"` Public bool `xml:"public,attr" json:"public,omitempty"` List []*TrackChild `xml:"entry" json:"entry"` }