1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-21 22:05:43 -04:00

New: NetImport Lists Grouped by Type

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2019-11-02 15:43:45 -04:00
parent d76423a305
commit ba83c01b6c
15 changed files with 65 additions and 19 deletions
@@ -11,6 +11,8 @@ namespace Radarr.Api.V3.NetImport
public string RootFolderPath { get; set; }
public int QualityProfileId { get; set; }
public MovieStatusType MinimumAvailability { get; set; }
public NetImportType ListType { get; set; }
public int ListOrder { get; set; }
}
public class NetImportResourceMapper : ProviderResourceMapper<NetImportResource, NetImportDefinition>
@@ -30,6 +32,8 @@ namespace Radarr.Api.V3.NetImport
resource.RootFolderPath = definition.RootFolderPath;
resource.QualityProfileId = definition.ProfileId;
resource.MinimumAvailability = definition.MinimumAvailability;
resource.ListType = definition.ListType;
resource.ListOrder = (int)definition.ListType;
return resource;
}
@@ -49,6 +53,7 @@ namespace Radarr.Api.V3.NetImport
definition.RootFolderPath = resource.RootFolderPath;
definition.ProfileId = resource.QualityProfileId;
definition.MinimumAvailability = resource.MinimumAvailability;
definition.ListType = resource.ListType;
return definition;
}