mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 11:17:19 +03:00
If mediafile does not have an embedded coverart, use album's
This commit is contained in:
parent
dc50f672b8
commit
25f68b6c89
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user