mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 07:13:47 -07:00
New: Per download client setting to Remove Completed/Failed
This commit is contained in:
parent
e9762b6919
commit
1d0df366fb
17 changed files with 323 additions and 94 deletions
|
@ -8,6 +8,8 @@ namespace Lidarr.Api.V1.DownloadClient
|
|||
public bool Enable { get; set; }
|
||||
public DownloadProtocol Protocol { get; set; }
|
||||
public int Priority { get; set; }
|
||||
public bool RemoveCompletedDownloads { get; set; }
|
||||
public bool RemoveFailedDownloads { get; set; }
|
||||
}
|
||||
|
||||
public class DownloadClientResourceMapper : ProviderResourceMapper<DownloadClientResource, DownloadClientDefinition>
|
||||
|
@ -24,6 +26,8 @@ namespace Lidarr.Api.V1.DownloadClient
|
|||
resource.Enable = definition.Enable;
|
||||
resource.Protocol = definition.Protocol;
|
||||
resource.Priority = definition.Priority;
|
||||
resource.RemoveCompletedDownloads = definition.RemoveCompletedDownloads;
|
||||
resource.RemoveFailedDownloads = definition.RemoveFailedDownloads;
|
||||
|
||||
return resource;
|
||||
}
|
||||
|
@ -40,6 +44,8 @@ namespace Lidarr.Api.V1.DownloadClient
|
|||
definition.Enable = resource.Enable;
|
||||
definition.Protocol = resource.Protocol;
|
||||
definition.Priority = resource.Priority;
|
||||
definition.RemoveCompletedDownloads = resource.RemoveCompletedDownloads;
|
||||
definition.RemoveFailedDownloads = resource.RemoveFailedDownloads;
|
||||
|
||||
return definition;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue