From b65f4205fc6f86f968d464beb61b282e9f8dcf70 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 17 Oct 2021 11:58:48 -0500 Subject: [PATCH] Fixed: Don't delete down indexers if they still exist in DB Fixes #494 --- src/NzbDrone.Core/Applications/ApplicationService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Applications/ApplicationService.cs b/src/NzbDrone.Core/Applications/ApplicationService.cs index 554fc1daa..80b7c840d 100644 --- a/src/NzbDrone.Core/Applications/ApplicationService.cs +++ b/src/NzbDrone.Core/Applications/ApplicationService.cs @@ -159,9 +159,11 @@ private void SyncIndexers(List applications, List x.Id == mapping.IndexerId)) + if (!allIndexers.Any(x => x.Id == mapping.IndexerId)) { _logger.Info("Indexer with the ID {0} was found within {1} but is no longer defined within Prowlarr, this is being removed.", mapping.IndexerId, app.Name); ExecuteAction(a => a.RemoveIndexer(mapping.IndexerId), app);