Fixed: Retain user settings not-affiliated with Prowlarr

pull/1824/head
Bogdan 1 year ago
parent 7cd82321b4
commit 7a937e85a4

@ -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);
}

@ -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; }

@ -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);
}

@ -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; }

Loading…
Cancel
Save