mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-20 21:54:58 -04:00
New: Per download client setting to Remove Completed/Failed downloads instead of global setting
This commit is contained in:
@@ -16,6 +16,8 @@ namespace NzbDrone.Api.DownloadClient
|
||||
resource.Enable = definition.Enable;
|
||||
resource.Protocol = definition.Protocol;
|
||||
resource.Priority = definition.Priority;
|
||||
resource.RemoveCompletedDownloads = definition.RemoveCompletedDownloads;
|
||||
resource.RemoveFailedDownloads = definition.RemoveFailedDownloads;
|
||||
}
|
||||
|
||||
protected override void MapToModel(DownloadClientDefinition definition, DownloadClientResource resource)
|
||||
@@ -25,6 +27,8 @@ namespace NzbDrone.Api.DownloadClient
|
||||
definition.Enable = resource.Enable;
|
||||
definition.Protocol = resource.Protocol;
|
||||
definition.Priority = resource.Priority;
|
||||
definition.RemoveCompletedDownloads = resource.RemoveCompletedDownloads;
|
||||
definition.RemoveFailedDownloads = resource.RemoveFailedDownloads;
|
||||
}
|
||||
|
||||
protected override void Validate(DownloadClientDefinition definition, bool includeWarnings)
|
||||
|
||||
Reference in New Issue
Block a user