If mediafile does not have an embedded coverart, use album's
This commit is contained in:
parent
dc50f672b8
commit
25f68b6c89
1 changed files with 2 additions and 0 deletions
|
|
@ -101,6 +101,8 @@ func FromMediaFile(mf *model.MediaFile) Entry {
|
||||||
e.BitRate = mf.BitRate
|
e.BitRate = mf.BitRate
|
||||||
if mf.HasCoverArt {
|
if mf.HasCoverArt {
|
||||||
e.CoverArt = mf.ID
|
e.CoverArt = mf.ID
|
||||||
|
} else {
|
||||||
|
e.CoverArt = "al-" + mf.AlbumID
|
||||||
}
|
}
|
||||||
e.ContentType = mf.ContentType()
|
e.ContentType = mf.ContentType()
|
||||||
e.AbsolutePath = mf.Path
|
e.AbsolutePath = mf.Path
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue