Fixing build
This commit is contained in:
@@ -153,6 +153,7 @@ func (c *BaseAPIController) ToAlbums(entries engine.Entries) []responses.Child {
|
|||||||
func (c *BaseAPIController) ToAlbum(entry engine.Entry) responses.Child {
|
func (c *BaseAPIController) ToAlbum(entry engine.Entry) responses.Child {
|
||||||
album := c.ToChild(entry)
|
album := c.ToChild(entry)
|
||||||
album.Name = album.Title
|
album.Name = album.Title
|
||||||
|
album.Title = ""
|
||||||
return album
|
return album
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,8 +76,8 @@ type Child struct {
|
|||||||
Id string `xml:"id,attr" json:"id"`
|
Id string `xml:"id,attr" json:"id"`
|
||||||
Parent string `xml:"parent,attr,omitempty" json:"parent,omitempty"`
|
Parent string `xml:"parent,attr,omitempty" json:"parent,omitempty"`
|
||||||
IsDir bool `xml:"isDir,attr" json:"isDir"`
|
IsDir bool `xml:"isDir,attr" json:"isDir"`
|
||||||
Title string `xml:"title,attr" json:"title"`
|
Title string `xml:"title,attr,omitempty" json:"title,omitempty"`
|
||||||
Name string `xml:"name,attr" json:"name"`
|
Name string `xml:"name,attr,omitempty" json:"name,omitempty"`
|
||||||
Album string `xml:"album,attr,omitempty" json:"album,omitempty"`
|
Album string `xml:"album,attr,omitempty" json:"album,omitempty"`
|
||||||
Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`
|
Artist string `xml:"artist,attr,omitempty" json:"artist,omitempty"`
|
||||||
Track int `xml:"track,attr,omitempty" json:"track,omitempty"`
|
Track int `xml:"track,attr,omitempty" json:"track,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user