mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-14 00:40:49 +02:00
parent
3e243eafdd
commit
b65f4205fc
1 changed files with 3 additions and 1 deletions
|
|
@ -159,9 +159,11 @@ private void SyncIndexers(List<IApplication> applications, List<IndexerDefinitio
|
|||
|
||||
if (removeRemote)
|
||||
{
|
||||
var allIndexers = _indexerFactory.All();
|
||||
|
||||
foreach (var mapping in indexerMappings)
|
||||
{
|
||||
if (!indexers.Any(x => 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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue