mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (Apps) Check if the indexers have valid settings
This commit is contained in:
@@ -202,9 +202,17 @@ namespace NzbDrone.Core.Applications
|
|||||||
|
|
||||||
private bool ShouldHandleIndexer(ProviderDefinition app, ProviderDefinition indexer)
|
private bool ShouldHandleIndexer(ProviderDefinition app, ProviderDefinition indexer)
|
||||||
{
|
{
|
||||||
|
if (!indexer.Settings.Validate().IsValid)
|
||||||
|
{
|
||||||
|
_logger.Debug("Indexer {0} [{1}] has invalid settings.", indexer.Name, indexer.Id);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (app.Tags.Empty())
|
if (app.Tags.Empty())
|
||||||
{
|
{
|
||||||
_logger.Debug("No tags set to application {0}.", app.Name);
|
_logger.Debug("No tags set to application {0}.", app.Name);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,10 +221,12 @@ namespace NzbDrone.Core.Applications
|
|||||||
if (intersectingTags.Any())
|
if (intersectingTags.Any())
|
||||||
{
|
{
|
||||||
_logger.Debug("Application {0} and indexer {1} [{2}] have {3} intersecting (matching) tags.", app.Name, indexer.Name, indexer.Id, intersectingTags.Length);
|
_logger.Debug("Application {0} and indexer {1} [{2}] have {3} intersecting (matching) tags.", app.Name, indexer.Name, indexer.Id, intersectingTags.Length);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.Debug("Application {0} does not have any intersecting (matching) tags with {1} [{2}]. Indexer will neither be synced to nor removed from the application.", app.Name, indexer.Name, indexer.Id);
|
_logger.Debug("Application {0} does not have any intersecting (matching) tags with {1} [{2}]. Indexer will neither be synced to nor removed from the application.", app.Name, indexer.Name, indexer.Id);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user