mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-06 08:25:54 +01:00
Fixed: Improve Album Added by Metadata Messaging
This commit is contained in:
parent
fc560332ad
commit
2b5967d36a
1 changed files with 3 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ public void SearchForRecentlyAdded(int artistId)
|
|||
|
||||
if (toSearch.Any())
|
||||
{
|
||||
_logger.Trace("Found {0} albums flagged for search on add", toSearch.Count);
|
||||
toSearch.ForEach(x => x.AddOptions.SearchForNewAlbum = false);
|
||||
|
||||
_albumService.SetAddOptions(toSearch);
|
||||
|
|
@ -49,11 +50,13 @@ public void SearchForRecentlyAdded(int artistId)
|
|||
var recentlyAddedIds = _addedAlbumsCache.Find(artistId.ToString());
|
||||
if (recentlyAddedIds != null)
|
||||
{
|
||||
_logger.Trace("Found and monitored {0} albums by artist [{1}] during metadata refresh.", recentlyAddedIds.Count, artistId);
|
||||
toSearch.AddRange(allAlbums.Where(x => recentlyAddedIds.Contains(x.Id)));
|
||||
}
|
||||
|
||||
if (toSearch.Any())
|
||||
{
|
||||
_logger.Debug("Searching for {0} monitored albums for artist [{1}] added during metadata refresh.", toSearch.Count, artistId);
|
||||
_commandQueueManager.Push(new AlbumSearchCommand(toSearch.Select(e => e.Id).ToList()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue