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 bf9d6f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/ctrlsubsonic/spec/spec.go
Original file line number Diff line number Diff line change
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 bf9d6f2

Please sign in to comment.