Added download directory and move completed downloads functionality to Deluge client

pull/9813/head
nopoz 3 months ago
parent e70c61e24e
commit c6344c671d

@ -103,6 +103,9 @@ namespace NzbDrone.Core.Download.Clients.Deluge
{
var options = new
{
download_location = settings.DownloadDirectory,
move_completed_path = settings.CompletedDirectory
move_completed = !string.IsNullOrEmpty(settings.CompletedDirectory),
add_paused = settings.AddPaused,
remove_at_ratio = false
};
@ -116,6 +119,9 @@ namespace NzbDrone.Core.Download.Clients.Deluge
{
var options = new
{
download_location = settings.DownloadDirectory,
move_completed_path = settings.CompletedDirectory
move_completed = !string.IsNullOrEmpty(settings.CompletedDirectory),
add_paused = settings.AddPaused,
remove_at_ratio = false
};

@ -61,6 +61,12 @@ namespace NzbDrone.Core.Download.Clients.Deluge
[FieldDefinition(9, Label = "DownloadClientSettingsAddPaused", Type = FieldType.Checkbox)]
public bool AddPaused { get; set; }
[FieldDefinition(10, Label = "DownloadClientDulugeSettingsDirectory", Type = FieldType.Textbox, Advanced = true, HelpText = "DownloadClientDulugeSettingsDirectoryHelpText")]
public string DownloadDirectory { get; set; }
[FieldDefinition(11, Label = "DownloadClientDulugeSettingsDirectoryCompleted", Type = FieldType.Textbox, Advanced = true, HelpText = "DownloadClientDulugeSettingsDirectoryCompletedHelpText")]
public string CompletedDirectory { get; set; }
public NzbDroneValidationResult Validate()
{
return new NzbDroneValidationResult(Validator.Validate(this));

@ -378,6 +378,10 @@
"DownloadClientDelugeValidationLabelPluginFailureDetail": "{appName} was unable to add the label to {clientName}.",
"DownloadClientDelugeValidationLabelPluginInactive": "Label plugin not activated",
"DownloadClientDelugeValidationLabelPluginInactiveDetail": "You must have the Label plugin enabled in {clientName} to use categories.",
"DownloadClientDulugeSettingsDirectory": "Download Directory",
"DownloadClientDulugeSettingsDirectoryHelpText": "Optional location to put downloads in, leave blank to use the default Deluge location",
"DownloadClientDulugeSettingsDirectoryCompleted": "Move When Completed Directory",
"DownloadClientDulugeSettingsDirectoryCompletedHelpText": "Optional location to move completed downloads to, leave blank to use the default Deluge location",
"DownloadClientDownloadStationProviderMessage": "{appName} is unable to connect to Download Station if 2-Factor Authentication is enabled on your DSM account",
"DownloadClientDownloadStationSettingsDirectoryHelpText": "Optional shared folder to put downloads into, leave blank to use the default Download Station location",
"DownloadClientDownloadStationValidationApiVersion": "Download Station API version not supported, should be at least {requiredVersion}. It supports from {minVersion} to {maxVersion}",

Loading…
Cancel
Save