diff --git a/src/Lidarr.Api.V1/ProviderControllerBase.cs b/src/Lidarr.Api.V1/ProviderControllerBase.cs index d0c2ee25c..4c4a1a0c3 100644 --- a/src/Lidarr.Api.V1/ProviderControllerBase.cs +++ b/src/Lidarr.Api.V1/ProviderControllerBase.cs @@ -95,8 +95,8 @@ namespace Lidarr.Api.V1 var hasDefinitionChanged = STJson.ToJson(existingDefinition) != STJson.ToJson(providerDefinition) || STJson.ToJson(existingDefinition.Settings) != STJson.ToJson(providerDefinition.Settings); - // Only test existing definitions if it is enabled and forceSave isn't set or the definition has changed. - if (providerDefinition.Enable && (!forceSave || hasDefinitionChanged)) + // Only test existing definitions if it is enabled and forceSave isn't set and the definition has changed. + if (providerDefinition.Enable && !forceSave && hasDefinitionChanged) { Test(providerDefinition, true); }