Misc definition handling improvements

This commit is contained in:
Qstick
2022-01-30 18:49:58 -06:00
parent a3de574de5
commit 17608cf915
13 changed files with 302 additions and 78 deletions

View File

@@ -35,10 +35,13 @@ namespace NzbDrone.Core.HealthCheck.Checks
return new HealthCheck(GetType());
}
var healthType = HealthCheckResult.Warning;
var healthMessage = string.Format(_localizationService.GetLocalizedString("IndexerObsoleteCheckMessage"),
string.Join(", ", oldIndexers.Select(v => v.Definition.Name)));
return new HealthCheck(GetType(),
HealthCheckResult.Warning,
string.Format(_localizationService.GetLocalizedString("IndexerObsoleteCheckMessage"),
string.Join(", ", oldIndexers.Select(v => v.Definition.Name))),
healthType,
healthMessage,
"#indexers-are-obsolete");
}