@@ -197,6 +197,7 @@ func playlistRender(c *Controller, params params.Params, playlistID string, play
|
|||||||
Name: playlist.Name,
|
Name: playlist.Name,
|
||||||
Comment: playlist.Comment,
|
Comment: playlist.Comment,
|
||||||
Created: playlist.UpdatedAt,
|
Created: playlist.UpdatedAt,
|
||||||
|
Changed: playlist.UpdatedAt,
|
||||||
SongCount: len(playlist.Items),
|
SongCount: len(playlist.Items),
|
||||||
Public: playlist.IsPublic,
|
Public: playlist.IsPublic,
|
||||||
Owner: user.Name,
|
Owner: user.Name,
|
||||||
|
|||||||
@@ -310,6 +310,7 @@ type Playlist struct {
|
|||||||
Owner string `xml:"owner,attr" json:"owner"`
|
Owner string `xml:"owner,attr" json:"owner"`
|
||||||
SongCount int `xml:"songCount,attr" json:"songCount"`
|
SongCount int `xml:"songCount,attr" json:"songCount"`
|
||||||
Created time.Time `xml:"created,attr" json:"created"`
|
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,omitempty"`
|
||||||
Public bool `xml:"public,attr" json:"public,omitempty"`
|
Public bool `xml:"public,attr" json:"public,omitempty"`
|
||||||
List []*TrackChild `xml:"entry,omitempty" json:"entry,omitempty"`
|
List []*TrackChild `xml:"entry,omitempty" json:"entry,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user