Implementing coverArt

This commit is contained in:
Deluan
2016-03-03 10:34:17 -05:00
parent 80880434aa
commit 1b945831cc
9 changed files with 40 additions and 8 deletions
+4
View File
@@ -57,6 +57,7 @@ func (c *GetMusicDirectoryController) buildArtistDir(a *domain.Artist, albums []
dir.Child[i].Year = al.Year
dir.Child[i].Artist = al.Artist
dir.Child[i].Genre = al.Genre
dir.Child[i].CoverArt = al.CoverArtId
}
return dir
}
@@ -78,6 +79,9 @@ func (c *GetMusicDirectoryController) buildAlbumDir(al *domain.Album, tracks []d
dir.Child[i].Size = mf.Size
dir.Child[i].Suffix = mf.Suffix
dir.Child[i].BitRate = mf.BitRate
if mf.HasCoverArt {
dir.Child[i].CoverArt = mf.Id
}
}
return dir
}