From 2f563c3406191c3ee9f6c6a364c2c8aaa6c974f2 Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Mon, 2 Mar 2020 18:31:15 +0100 Subject: [PATCH] spec: add IgnoredArticles attribute to Index responses This attribute is required as per spec and keeping it empty, complies the spec as long as articles are not ignored while indexing. In the future, this could maybe be a user setting that could be supported. With this change, the aurial client works now. * https://shrimpza.github.io/aurial/ * https://github.com/shrimpza/aurial --- server/ctrlsubsonic/spec/spec.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/server/ctrlsubsonic/spec/spec.go b/server/ctrlsubsonic/spec/spec.go index cdd8bfe..9f979ef 100644 --- a/server/ctrlsubsonic/spec/spec.go +++ b/server/ctrlsubsonic/spec/spec.go @@ -134,7 +134,8 @@ type TrackChild struct { } type Artists struct { - List []*Index `xml:"index" json:"index"` + IgnoredArticles string `xml:"ignoredArticles,attr" json:"ignoredArticles"` + List []*Index `xml:"index" json:"index"` } type Artist struct { @@ -146,8 +147,9 @@ type Artist struct { } type Indexes struct { - LastModified int `xml:"lastModified,attr,omitempty" json:"lastModified"` - Index []*Index `xml:"index" json:"index"` + LastModified int `xml:"lastModified,attr,omitempty" json:"lastModified"` + IgnoredArticles string `xml:"ignoredArticles,attr" json:"ignoredArticles"` + Index []*Index `xml:"index" json:"index"` } type Index struct {