Remove CoverArtID, fix tests

This commit is contained in:
Deluan
2022-12-19 14:11:43 -05:00
committed by Deluan Quintão
parent 38bde0ddba
commit c36e77d41f
6 changed files with 35 additions and 126 deletions
+1 -2
View File
@@ -135,8 +135,7 @@ func (mfs MediaFiles) ToAlbum() Album {
m.Album, m.AlbumArtist, m.Artist,
m.SortAlbumName, m.SortAlbumArtistName, m.SortArtistName,
m.DiscSubtitle)
if m.HasCoverArt && a.EmbedArtId == "" {
a.EmbedArtId = m.ID
if m.HasCoverArt && a.EmbedArtPath == "" {
a.EmbedArtPath = m.Path
}
}