If mediafile does not have an embedded coverart, use album's
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user