Fixed: Retain user settings not-affiliated with Prowlarr

This commit is contained in:
Bogdan
2023-08-10 18:05:00 +03:00
parent 7cd82321b4
commit 7a937e85a4
4 changed files with 8 additions and 0 deletions

View File

@@ -182,6 +182,9 @@ namespace NzbDrone.Core.Applications.Readarr
// Retain user tags not-affiliated with Prowlarr
readarrIndexer.Tags.UnionWith(remoteIndexer.Tags);
// Retain user settings not-affiliated with Prowlarr
readarrIndexer.DownloadClientId = remoteIndexer.DownloadClientId;
// Update the indexer if it still has categories that match
_readarrV1Proxy.UpdateIndexer(readarrIndexer, Settings);
}

View File

@@ -17,6 +17,7 @@ namespace NzbDrone.Core.Applications.Readarr
public string Implementation { get; set; }
public string ConfigContract { get; set; }
public string InfoLink { get; set; }
public int? DownloadClientId { get; set; }
public HashSet<int> Tags { get; set; }
public List<ReadarrField> Fields { get; set; }

View File

@@ -182,6 +182,9 @@ namespace NzbDrone.Core.Applications.Whisparr
// Retain user tags not-affiliated with Prowlarr
whisparrIndexer.Tags.UnionWith(remoteIndexer.Tags);
// Retain user settings not-affiliated with Prowlarr
whisparrIndexer.DownloadClientId = remoteIndexer.DownloadClientId;
// Update the indexer if it still has categories that match
_whisparrV3Proxy.UpdateIndexer(whisparrIndexer, Settings);
}

View File

@@ -17,6 +17,7 @@ namespace NzbDrone.Core.Applications.Whisparr
public string Implementation { get; set; }
public string ConfigContract { get; set; }
public string InfoLink { get; set; }
public int? DownloadClientId { get; set; }
public HashSet<int> Tags { get; set; }
public List<WhisparrField> Fields { get; set; }