mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 15:23:40 -07:00
Support for primary and fallback download client
This commit is contained in:
parent
4ec0cace2e
commit
3b3d81dab2
8 changed files with 320 additions and 3 deletions
|
@ -7,6 +7,7 @@ namespace Lidarr.Api.V1.DownloadClient
|
|||
{
|
||||
public bool Enable { get; set; }
|
||||
public DownloadProtocol Protocol { get; set; }
|
||||
public int Priority { get; set; }
|
||||
}
|
||||
|
||||
public class DownloadClientResourceMapper : ProviderResourceMapper<DownloadClientResource, DownloadClientDefinition>
|
||||
|
@ -19,6 +20,7 @@ namespace Lidarr.Api.V1.DownloadClient
|
|||
|
||||
resource.Enable = definition.Enable;
|
||||
resource.Protocol = definition.Protocol;
|
||||
resource.Priority = definition.Priority;
|
||||
|
||||
return resource;
|
||||
}
|
||||
|
@ -31,6 +33,7 @@ namespace Lidarr.Api.V1.DownloadClient
|
|||
|
||||
definition.Enable = resource.Enable;
|
||||
definition.Protocol = resource.Protocol;
|
||||
definition.Priority = resource.Priority;
|
||||
|
||||
return definition;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue