New: Per download client setting to Remove Completed/Failed downloads instead of global setting

(cherry picked from commit 2dba5ef4b431bee0a061be67354c9a7a612a03c8)
This commit is contained in:
Taloth Saldono
2021-05-15 21:37:55 +02:00
committed by Bogdan
parent e5a1b7a72e
commit 8bb52105fd
16 changed files with 308 additions and 92 deletions
@@ -8,10 +8,7 @@ namespace Readarr.Api.V1.Config
public string DownloadClientWorkingFolders { get; set; }
public bool EnableCompletedDownloadHandling { get; set; }
public bool RemoveCompletedDownloads { get; set; }
public bool AutoRedownloadFailed { get; set; }
public bool RemoveFailedDownloads { get; set; }
}
public static class DownloadClientConfigResourceMapper
@@ -23,10 +20,7 @@ namespace Readarr.Api.V1.Config
DownloadClientWorkingFolders = model.DownloadClientWorkingFolders,
EnableCompletedDownloadHandling = model.EnableCompletedDownloadHandling,
RemoveCompletedDownloads = model.RemoveCompletedDownloads,
AutoRedownloadFailed = model.AutoRedownloadFailed,
RemoveFailedDownloads = model.RemoveFailedDownloads
AutoRedownloadFailed = model.AutoRedownloadFailed
};
}
}