|
|
@ -73,7 +73,7 @@ namespace Prowlarr.Api.V1
|
|
|
|
|
|
|
|
|
|
|
|
if (providerDefinition.Enable)
|
|
|
|
if (providerDefinition.Enable)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Test(providerDefinition, false);
|
|
|
|
Test(providerDefinition, !forceSave);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
providerDefinition = _providerFactory.Create(providerDefinition);
|
|
|
|
providerDefinition = _providerFactory.Create(providerDefinition);
|
|
|
@ -91,7 +91,7 @@ namespace Prowlarr.Api.V1
|
|
|
|
// Only test existing definitions if it is enabled and forceSave isn't set.
|
|
|
|
// Only test existing definitions if it is enabled and forceSave isn't set.
|
|
|
|
if (providerDefinition.Enable && !forceSave)
|
|
|
|
if (providerDefinition.Enable && !forceSave)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Test(providerDefinition, false);
|
|
|
|
Test(providerDefinition, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_providerFactory.Update(providerDefinition);
|
|
|
|
_providerFactory.Update(providerDefinition);
|
|
|
|