Skip to content

Commit

Permalink
fix(subsonic): songCount and albumCount in genre objects is required (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Duncaen committed Oct 12, 2023
1 parent 80fdc85 commit b17e76e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/ctrlsubsonic/spec/spec.go
Expand Up @@ -309,9 +309,9 @@ type Genres struct {
}

type Genre struct {
Name string `xml:",chardata" json:"value"`
SongCount int `xml:"songCount,attr,omitempty" json:"songCount,omitempty"`
AlbumCount int `xml:"albumCount,attr,omitempty" json:"albumCount,omitempty"`
Name string `xml:",chardata" json:"value"`
SongCount int `xml:"songCount,attr" json:"songCount"`
AlbumCount int `xml:"albumCount,attr" json:"albumCount"`
}

type PlayQueue struct {
Expand Down

0 comments on commit b17e76e

Please sign in to comment.