From 959ac461805a28ff5c764270ed9f1fa8537ab0a5 Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 23 Aug 2023 22:42:19 -0500 Subject: [PATCH] Fixed: Refresh artist and correctly trigger search on single album adds for new artists --- src/NzbDrone.Core/Music/Utilities/ShouldRefreshArtist.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/NzbDrone.Core/Music/Utilities/ShouldRefreshArtist.cs b/src/NzbDrone.Core/Music/Utilities/ShouldRefreshArtist.cs index 8bc09484f..495b937af 100644 --- a/src/NzbDrone.Core/Music/Utilities/ShouldRefreshArtist.cs +++ b/src/NzbDrone.Core/Music/Utilities/ShouldRefreshArtist.cs @@ -22,6 +22,12 @@ namespace NzbDrone.Core.Music public bool ShouldRefresh(Artist artist) { + if (artist.LastInfoSync == null) + { + _logger.Trace("Artist {0} was just added, should refresh.", artist.Name); + return true; + } + if (artist.LastInfoSync < DateTime.UtcNow.AddDays(-30)) { _logger.Trace("Artist {0} last updated more than 30 days ago, should refresh.", artist.Name);