Handling failure to refresh an album gracefully, so that artist refresh will not stop on the first failed album

This commit is contained in:
Thomas O'Brien 2025-08-20 14:33:42 +01:00
commit aff90cb404

View file

@ -339,9 +339,16 @@ namespace NzbDrone.Core.Music
if (forceAlbumRefresh ||
(updatedMusicbrainzAlbums == null && _checkIfAlbumShouldBeRefreshed.ShouldRefresh(album)) ||
(updatedMusicbrainzAlbums != null && updatedMusicbrainzAlbums.Contains(album.ForeignAlbumId)))
{
try
{
updated |= RefreshAlbumInfo(album, remoteAlbums, forceUpdateFileTags);
}
catch (Exception e)
{
_logger.Error(e, "Couldn't refresh info for {0}", album);
}
}
else
{
_logger.Debug("Skipping refresh of album: {0}", album.Title);