Fixing build

This commit is contained in:
Deluan
2016-03-27 21:40:09 -04:00
parent 94d76cb212
commit 4b38f9238c
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -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
} }
+2 -2
View File
@@ -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"`