mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Significantly improved api performance.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using NzbDrone.Core.Download;
|
||||
using System;
|
||||
using NzbDrone.Core.Download;
|
||||
|
||||
namespace NzbDrone.Api.DownloadClient
|
||||
{
|
||||
@@ -9,6 +10,22 @@ namespace NzbDrone.Api.DownloadClient
|
||||
{
|
||||
}
|
||||
|
||||
protected override void MapToResource(DownloadClientResource resource, DownloadClientDefinition definition)
|
||||
{
|
||||
base.MapToResource(resource, definition);
|
||||
|
||||
resource.Enable = definition.Enable;
|
||||
resource.Protocol = definition.Protocol;
|
||||
}
|
||||
|
||||
protected override void MapToModel(DownloadClientDefinition definition, DownloadClientResource resource)
|
||||
{
|
||||
base.MapToModel(definition, resource);
|
||||
|
||||
definition.Enable = resource.Enable;
|
||||
definition.Protocol = resource.Protocol;
|
||||
}
|
||||
|
||||
protected override void Validate(DownloadClientDefinition definition, bool includeWarnings)
|
||||
{
|
||||
if (!definition.Enable) return;
|
||||
|
Reference in New Issue
Block a user