🎧 Your Personal Streaming Service
Go airsonicmadsonicmedia-servermusicmusic-servernavidromeopensubsonicraspberry-piself-hostedstreamerstreaming-apistreaming-audiosubsonicsubsonic-server
Fixing build
Deluan4b38f9238cf5
diff --git a/api/base_api_controller.go b/api/base_api_controller.goindex 5e927faf8..da3a8d21e 100644--- a/api/base_api_controller.go+++ b/api/base_api_controller.go@@ -153,6 +153,7 @@ func (c *BaseAPIController) ToAlbums(entries engine.Entries) []responses.Child {func (c *BaseAPIController) ToAlbum(entry engine.Entry) responses.Child {album := c.ToChild(entry)album.Name = album.Title+ album.Title = ""return album}diff --git a/api/responses/responses.go b/api/responses/responses.goindex af378778d..d16c58e17 100644--- a/api/responses/responses.go+++ b/api/responses/responses.go@@ -76,8 +76,8 @@ type Child struct {Id string `xml:"id,attr" json:"id"`Parent string `xml:"parent,attr,omitempty" json:"parent,omitempty"`IsDir bool `xml:"isDir,attr" json:"isDir"`- Title string `xml:"title,attr" json:"title"`- Name string `xml:"name,attr" json:"name"`+ Title string `xml:"title,attr,omitempty" json:"title,omitempty"`+ Name string `xml:"name,attr,omitempty" json:"name,omitempty"`Album string `xml:"album,attr,omitempty" json:"album,omitempty"`Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`Track int `xml:"track,attr,omitempty" json:"track,omitempty"`