From b17e76ea730e213d99a164c8ddff2c4b951f7f1f Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Thu, 12 Oct 2023 21:19:30 +0200 Subject: [PATCH] fix(subsonic): songCount and albumCount in genre objects is required (#390) --- server/ctrlsubsonic/spec/spec.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/ctrlsubsonic/spec/spec.go b/server/ctrlsubsonic/spec/spec.go index 3396490..1f9c055 100644 --- a/server/ctrlsubsonic/spec/spec.go +++ b/server/ctrlsubsonic/spec/spec.go @@ -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 {