From 9fffcfaea3ff5f2702179b4a64a4636f8eea6741 Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 22 Jan 2017 15:08:25 +0100 Subject: [PATCH] Fix stuff regarding the ordering of Fields. --- src/NzbDrone.Api/NetImport/NetImportModule.cs | 2 +- .../NetImport/CouchPotato/CouchPotatoSettings.cs | 4 ++-- src/NzbDrone.Core/NetImport/NetImportBaseSettings.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Api/NetImport/NetImportModule.cs b/src/NzbDrone.Api/NetImport/NetImportModule.cs index 81695d922..2e9390561 100644 --- a/src/NzbDrone.Api/NetImport/NetImportModule.cs +++ b/src/NzbDrone.Api/NetImport/NetImportModule.cs @@ -22,7 +22,7 @@ namespace NzbDrone.Api.NetImport int index = 0; foreach (var field in resource.Fields) { - if (field.Label == "Quality") + if (field.Label == "Quality Profile") { index = resource.Fields.FindIndex(f => f.Label == field.Label); field.SelectOptions = diff --git a/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoSettings.cs b/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoSettings.cs index 15a6cf9cb..3cd3cb57e 100644 --- a/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoSettings.cs +++ b/src/NzbDrone.Core/NetImport/CouchPotato/CouchPotatoSettings.cs @@ -18,10 +18,10 @@ namespace NzbDrone.Core.NetImport.CouchPotato [FieldDefinition(0, Label = "CouchPotato URL", HelpText = "Link to your CoouchPootato.")] public new string Link { get; set; } - [FieldDefinition(1, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")] + [FieldDefinition(2, Label = "CouchPotato Port", HelpText = "Port your CoouchPootato uses.")] public string Port { get; set; } - [FieldDefinition(2, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")] + [FieldDefinition(3, Label = "CouchPotato API Key", HelpText = "CoouchPootato API Key.")] public string ApiKey { get; set; } } } diff --git a/src/NzbDrone.Core/NetImport/NetImportBaseSettings.cs b/src/NzbDrone.Core/NetImport/NetImportBaseSettings.cs index cdbbd0baf..b9a0cf798 100644 --- a/src/NzbDrone.Core/NetImport/NetImportBaseSettings.cs +++ b/src/NzbDrone.Core/NetImport/NetImportBaseSettings.cs @@ -27,7 +27,7 @@ namespace NzbDrone.Core.NetImport [FieldDefinition(0, Label = "Link", HelpText = "Link to the list of movies.")] public string Link { get; set; } - [FieldDefinition(1, Label = "Quality", Type = FieldType.Select, SelectOptions = typeof(Profile), HelpText = "Quality of all imported movies")] + [FieldDefinition(1, Label = "Quality Profile", Type = FieldType.Select, SelectOptions = typeof(Profile), HelpText = "Quality Profile of all added movies")] public int ProfileId { get; set; } public bool IsValid => !string.IsNullOrWhiteSpace(Link);