From 22ba9c7ce6dd35d872f06fbc537923be2cca0093 Mon Sep 17 00:00:00 2001 From: Roger Far Date: Fri, 5 Jan 2024 12:03:23 -0700 Subject: [PATCH] Expose the Post Torrent Download Action setting on the Provider settings. --- .../Models/Internal/DbSettings.cs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/server/RdtClient.Data/Models/Internal/DbSettings.cs b/server/RdtClient.Data/Models/Internal/DbSettings.cs index f0bda9b..71fed49 100644 --- a/server/RdtClient.Data/Models/Internal/DbSettings.cs +++ b/server/RdtClient.Data/Models/Internal/DbSettings.cs @@ -166,12 +166,12 @@ or public class DbSettingsIntegrations { - public DbSettingsDefaultsWithDownload Default { get; set; } = new(); + public DbSettingsDefaultsWithCategory Default { get; set; } = new(); } public class DbSettingsGui { - public DbSettingsDefaultsWithDownload Default { get; set; } = new(); + public DbSettingsDefaultsWithCategory Default { get; set; } = new(); } public class DbSettingsWatch @@ -193,18 +193,15 @@ public class DbSettingsWatch public Int32 Interval { get; set; } = 60; [DisplayName("Import Defaults")] - public DbSettingsDefaultsWithDownload Default { get; set; } = new(); -} - -public class DbSettingsDefaultsWithDownload : DbSettingsDefaultsWithCategory -{ - [DisplayName("Post Torrent Download Action")] - [Description("When a torrent is finished downloading on your debrid provider, perform this action. Use this setting if you only want to add files to your debrid provider but not download them to the host.")] - public TorrentHostDownloadAction HostDownloadAction { get; set; } + public DbSettingsDefaultsWithCategory Default { get; set; } = new(); } public class DbSettingsDefaultsWithCategory : DbSettingsDefaults { + [DisplayName("Post Torrent Download Action")] + [Description("When a torrent is finished downloading on your debrid provider, perform this action. Use this setting if you only want to add files to your debrid provider but not download them to the host.")] + public TorrentHostDownloadAction HostDownloadAction { get; set; } + [DisplayName("Category")] [Description("When a torrent is imported assign it this category.")] public String? Category { get; set; } = null;