mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-26 20:09:47 +01:00
Make sure album is updated if external cover changes
This commit is contained in:
parent
f5719a7571
commit
9ec349dce0
4 changed files with 28 additions and 11 deletions
|
|
@ -182,7 +182,9 @@ func (a *artwork) fromCoverArtPriority(ctx context.Context, priority string, al
|
|||
ff = append(ff, fromTag(al.EmbedArtPath), fromFFmpegTag(ctx, a.ffmpeg, al.EmbedArtPath))
|
||||
continue
|
||||
}
|
||||
ff = append(ff, fromExternalFile(ctx, al.ImageFiles, pattern))
|
||||
if al.ImageFiles != "" {
|
||||
ff = append(ff, fromExternalFile(ctx, al.ImageFiles, pattern))
|
||||
}
|
||||
}
|
||||
return ff
|
||||
}
|
||||
|
|
@ -201,6 +203,7 @@ func fromExternalFile(ctx context.Context, files string, pattern string) fromFun
|
|||
}
|
||||
f, err := os.Open(file)
|
||||
if err != nil {
|
||||
log.Warn(ctx, "Could not open cover art file", "file", file, err)
|
||||
continue
|
||||
}
|
||||
return f, file, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue