From ce5c5d3b589d86717a7e018544ddd116ba90dca9 Mon Sep 17 00:00:00 2001 From: sentriz Date: Thu, 12 Mar 2020 16:18:30 +0000 Subject: [PATCH] fix genre struct tags --- server/ctrlsubsonic/spec/spec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/ctrlsubsonic/spec/spec.go b/server/ctrlsubsonic/spec/spec.go index a5a8a38..bfc71d0 100644 --- a/server/ctrlsubsonic/spec/spec.go +++ b/server/ctrlsubsonic/spec/spec.go @@ -254,8 +254,8 @@ type Genres struct { } type Genre struct { - Name string `xml:",chardata",json:"value"` - SongCount int `xml:"songCount,attr,omitempty" json:"songCount,omitempty"` + Name string `xml:",chardata" json:"value"` + SongCount int `xml:"songCount,attr,omitempty" json:"songCount,omitempty"` AlbumCount int `xml:"albumCount,attr,omitempty" json:"albumCount,omitempty"` }