From 8a1a9bfcadcc7f404ebdc8edefb83bb7f9025ead Mon Sep 17 00:00:00 2001 From: sentriz Date: Mon, 4 May 2020 04:50:49 +0100 Subject: [PATCH] support xml mashalling of specid.ID --- server/ctrlsubsonic/specid/ids.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/ctrlsubsonic/specid/ids.go b/server/ctrlsubsonic/specid/ids.go index 5912682..b958baf 100644 --- a/server/ctrlsubsonic/specid/ids.go +++ b/server/ctrlsubsonic/specid/ids.go @@ -57,3 +57,7 @@ func (i ID) String() string { func (i ID) MarshalJSON() ([]byte, error) { return json.Marshal(i.String()) } + +func (i ID) MarshalText() ([]byte, error) { + return []byte(i.String()), nil +}