mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-07 05:22:14 -07:00
New: Don't forcibly retest indexers/download clients/connections on save if previously enabled
(cherry picked from commit b2b1600ebe7f022a3248ea12b69553e2d51a3a7c)
This commit is contained in:
parent
0581ff458c
commit
be88010c20
1 changed files with 3 additions and 1 deletions
|
@ -84,8 +84,10 @@ namespace Lidarr.Api.V1
|
||||||
private void UpdateProvider(TProviderResource providerResource)
|
private void UpdateProvider(TProviderResource providerResource)
|
||||||
{
|
{
|
||||||
var providerDefinition = GetDefinition(providerResource, false);
|
var providerDefinition = GetDefinition(providerResource, false);
|
||||||
|
var existingDefinition = _providerFactory.Get(providerDefinition.Id);
|
||||||
|
|
||||||
if (providerDefinition.Enable)
|
// Only test existing definitions if it was previously disabled
|
||||||
|
if (providerDefinition.Enable && !existingDefinition.Enable)
|
||||||
{
|
{
|
||||||
Test(providerDefinition, false);
|
Test(providerDefinition, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue