mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-30 19:02:06 +00:00
Fixed: Testing indexers, connections and download clients
This commit is contained in:
parent
f831dbd789
commit
4c9f13cb26
1 changed files with 8 additions and 4 deletions
|
@ -76,7 +76,10 @@ private int CreateProvider(TProviderResource providerResource)
|
|||
{
|
||||
var providerDefinition = GetDefinition(providerResource, false);
|
||||
|
||||
Test(providerDefinition, false);
|
||||
if (providerDefinition.Enable)
|
||||
{
|
||||
Test(providerDefinition, false);
|
||||
}
|
||||
|
||||
providerDefinition = _providerFactory.Create(providerDefinition);
|
||||
|
||||
|
@ -87,7 +90,10 @@ private void UpdateProvider(TProviderResource providerResource)
|
|||
{
|
||||
var providerDefinition = GetDefinition(providerResource, false);
|
||||
|
||||
Test(providerDefinition, false);
|
||||
if (providerDefinition.Enable)
|
||||
{
|
||||
Test(providerDefinition, false);
|
||||
}
|
||||
|
||||
_providerFactory.Update(providerDefinition);
|
||||
}
|
||||
|
@ -166,8 +172,6 @@ protected virtual void Validate(TProviderDefinition definition, bool includeWarn
|
|||
|
||||
protected virtual void Test(TProviderDefinition definition, bool includeWarnings)
|
||||
{
|
||||
if (!definition.Enable) return;
|
||||
|
||||
var validationResult = _providerFactory.Test(definition);
|
||||
|
||||
VerifyValidationResult(validationResult, includeWarnings);
|
||||
|
|
Loading…
Reference in a new issue