From 51a57e4918991e8f8aff447e2ce9ec1d52c74498 Mon Sep 17 00:00:00 2001 From: ta264 Date: Mon, 25 Jul 2022 22:16:18 +0100 Subject: [PATCH] fixup! cleanup --- .../ImportLists/ImportListSyncService.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs index ba23d8093..aa3e5bc9c 100644 --- a/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs +++ b/src/NzbDrone.Core/ImportLists/ImportListSyncService.cs @@ -119,7 +119,18 @@ namespace NzbDrone.Core.ImportLists } } + if (artistsToAdd.Count > 0) + { + _logger.ProgressInfo($"Adding {artistsToAdd.Count} artists"); + } + var addedArtists = _addArtistService.AddArtists(artistsToAdd, false, true); + + if (albumsToAdd.Count > 0) + { + _logger.ProgressInfo($"Adding {albumsToAdd.Count} albums"); + } + var addedAlbums = _addAlbumService.AddAlbums(albumsToAdd, false, true); var message = string.Format($"Import List Sync Completed. Items found: {reports.Count}, Artists added: {addedArtists.Count}, Albums added: {addedAlbums.Count}");