Skip to content

Commit

Permalink
If mediafile does not have an embedded coverart, use album's
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Jul 16, 2020
1 parent dc50f67 commit 25f68b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/common.go
Expand Up @@ -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
Expand Down

0 comments on commit 25f68b6

Please sign in to comment.