1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-16 21:15:33 -04:00

New: Add enabled to manage import lists bulk

This commit is contained in:
Bogdan
2023-11-09 14:16:03 +02:00
parent 54d447d55f
commit 50465fd482
7 changed files with 53 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ namespace Radarr.Api.V3.ImportLists
{
public class ImportListBulkResource : ProviderBulkResource<ImportListBulkResource>
{
public bool? Enabled { get; set; }
public bool? EnableAuto { get; set; }
public string RootFolderPath { get; set; }
public int? QualityProfileId { get; set; }
@@ -21,6 +22,7 @@ namespace Radarr.Api.V3.ImportLists
existingDefinitions.ForEach(existing =>
{
existing.Enabled = resource.Enabled ?? existing.Enabled;
existing.EnableAuto = resource.EnableAuto ?? existing.EnableAuto;
existing.RootFolderPath = resource.RootFolderPath ?? existing.RootFolderPath;
existing.QualityProfileId = resource.QualityProfileId ?? existing.QualityProfileId;