Skip to content

Commit

Permalink
feat(subsonic): return changed field in playlist response
Browse files Browse the repository at this point in the history
closes #455
  • Loading branch information
sentriz committed Jan 15, 2024
1 parent 6c6c349 commit 8b4fc04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/ctrlsubsonic/handlers_playlist.go
Expand Up @@ -197,6 +197,7 @@ func playlistRender(c *Controller, params params.Params, playlistID string, play
Name: playlist.Name,
Comment: playlist.Comment,
Created: playlist.UpdatedAt,
Changed: playlist.UpdatedAt,
SongCount: len(playlist.Items),
Public: playlist.IsPublic,
Owner: user.Name,
Expand Down
1 change: 1 addition & 0 deletions server/ctrlsubsonic/spec/spec.go
Expand Up @@ -310,6 +310,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"`
Changed time.Time `xml:"changed,attr" json:"changed"`
Duration int `xml:"duration,attr" json:"duration,omitempty"`
Public bool `xml:"public,attr" json:"public,omitempty"`
List []*TrackChild `xml:"entry,omitempty" json:"entry,omitempty"`
Expand Down

0 comments on commit 8b4fc04

Please sign in to comment.