mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
New: Removal of indexers on application sync that are no longer defined within Prowlarr
This commit is contained in:
parent
5cb13e69d7
commit
2451a9a9ee
1 changed files with 9 additions and 0 deletions
|
@ -147,6 +147,15 @@ namespace NzbDrone.Core.Applications
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var mapping in indexerMappings)
|
||||
{
|
||||
if (!indexers.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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue