mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Fixed: Refresh artist and correctly trigger search on single album adds for new artists
This commit is contained in:
parent
ebece0b897
commit
959ac46180
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue