mirror of
https://github.com/gabehf/music-importer.git
synced 2026-04-22 11:31:52 -07:00
resize too-large cover images
This commit is contained in:
parent
769f3ff08c
commit
93a5fc411e
3 changed files with 60 additions and 0 deletions
|
|
@ -254,6 +254,10 @@ func importPendingRelease(pd *pendingDownload, localDir string) {
|
|||
}
|
||||
}
|
||||
|
||||
if err := NormalizeCoverArt(localDir); err != nil {
|
||||
logf(fmt.Sprintf("Cover art normalization warning: %v", err))
|
||||
}
|
||||
|
||||
if err := EmbedAlbumArtIntoFolder(localDir); err != nil {
|
||||
entry.finish(fmt.Errorf("cover embed failed: %w", err))
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue