If mediafile does not have an embedded coverart, use album's

This commit is contained in:
Deluan 2020-07-16 17:08:52 -04:00
parent dc50f672b8
commit 25f68b6c89

View file

@ -101,6 +101,8 @@ func FromMediaFile(mf *model.MediaFile) Entry {
e.BitRate = mf.BitRate
if mf.HasCoverArt {
e.CoverArt = mf.ID
} else {
e.CoverArt = "al-" + mf.AlbumID
}
e.ContentType = mf.ContentType()
e.AbsolutePath = mf.Path