feat(subsonic): implement getTopSongs.view

closes #195
This commit is contained in:
xavier
2022-02-10 11:49:09 +00:00
committed by sentriz
parent 3d377372f7
commit 39b3ae5ecb
6 changed files with 110 additions and 17 deletions

View File

@@ -47,6 +47,7 @@ type Response struct {
Bookmarks *Bookmarks `xml:"bookmarks" json:"bookmarks,omitempty"`
Starred *Starred `xml:"starred" json:"starred,omitempty"`
StarredTwo *StarredTwo `xml:"starred2" json:"starred2,omitempty"`
TopSongs *TopSongs `xml:"topSongs" json:"topSongs,omitempty"`
}
func NewResponse() *Response {
@@ -352,3 +353,7 @@ type StarredTwo struct {
Albums []*Album `xml:"album,omitempty" json:"album,omitempty"`
Tracks []*TrackChild `xml:"song,omitempty" json:"song,omitempty"`
}
type TopSongs struct {
Tracks []*TrackChild `xml:"song,omitempty" json:"song,omitempty"`
}