From bae3a48aa1b83407aa1c9763b6fe3ae669ff7c9f Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Mon, 19 Jun 2017 15:22:03 +0200 Subject: [PATCH] Changed Name of Radarr Lists --- .../NetImport/NetImportFactory.cs | 2 +- .../{RadarrProxied.cs => RadarrLists.cs} | 40 +++++++++---------- .../NetImport/Radarr/RadarrSettings.cs | 2 +- src/NzbDrone.Core/NzbDrone.Core.csproj | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) rename src/NzbDrone.Core/NetImport/Radarr/{RadarrProxied.cs => RadarrLists.cs} (89%) diff --git a/src/NzbDrone.Core/NetImport/NetImportFactory.cs b/src/NzbDrone.Core/NetImport/NetImportFactory.cs index 51f3cbd2a..a9084e572 100644 --- a/src/NzbDrone.Core/NetImport/NetImportFactory.cs +++ b/src/NzbDrone.Core/NetImport/NetImportFactory.cs @@ -50,7 +50,7 @@ namespace NzbDrone.Core.NetImport public List Discoverable() { - var enabledImporters = GetAvailableProviders().Where(n => (n.GetType() == typeof(Radarr.RadarrProxied) || n.GetType() == typeof(TMDb.TMDbImport))); + var enabledImporters = GetAvailableProviders().Where(n => (n.GetType() == typeof(Radarr.RadarrLists) || n.GetType() == typeof(TMDb.TMDbImport))); var indexers = FilterBlockedIndexers(enabledImporters); return indexers.ToList(); } diff --git a/src/NzbDrone.Core/NetImport/Radarr/RadarrProxied.cs b/src/NzbDrone.Core/NetImport/Radarr/RadarrLists.cs similarity index 89% rename from src/NzbDrone.Core/NetImport/Radarr/RadarrProxied.cs rename to src/NzbDrone.Core/NetImport/Radarr/RadarrLists.cs index cb1be66a6..75cf027d2 100644 --- a/src/NzbDrone.Core/NetImport/Radarr/RadarrProxied.cs +++ b/src/NzbDrone.Core/NetImport/Radarr/RadarrLists.cs @@ -1,39 +1,39 @@ -using System.Collections.Generic; +using System.Collections.Generic; using NLog; using NzbDrone.Common.Http; using NzbDrone.Core.Configuration; -using NzbDrone.Core.Parser; -using NzbDrone.Core.ThingiProvider; +using NzbDrone.Core.Parser; +using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.MetadataSource; namespace NzbDrone.Core.NetImport.Radarr { - public class RadarrProxied : HttpNetImportBase + public class RadarrLists : HttpNetImportBase { - public override string Name => "Radarr Proxied Lists"; + public override string Name => "Radarr Lists"; public override bool Enabled => true; public override bool EnableAuto => false; private readonly IHttpClient _httpClient; - private readonly Logger _logger; + private readonly Logger _logger; private readonly ISearchForNewMovie _skyhookProxy; - public RadarrProxied(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, ISearchForNewMovie skyhookProxy, + public RadarrLists(IHttpClient httpClient, IConfigService configService, IParsingService parsingService, ISearchForNewMovie skyhookProxy, Logger logger) : base(httpClient, configService, parsingService, logger) - { + { _skyhookProxy = skyhookProxy; _logger = logger; _httpClient = httpClient; } public override IEnumerable GetDefaultDefinitions() - { + { foreach (var def in base.GetDefaultDefinitions()) { yield return def; - } + } yield return new NetImportDefinition { @@ -52,16 +52,16 @@ namespace NzbDrone.Core.NetImport.Radarr ProfileId = 1, Implementation = GetType().Name, Settings = new RadarrSettings { Path = "/imdb/popular" }, - }; - yield return new NetImportDefinition - { - Name = "IMDb List", - Enabled = Enabled, - EnableAuto = true, - ProfileId = 1, - Implementation = GetType().Name, - Settings = new RadarrSettings { Path = "/imdb/list?listId=LISTID" }, - }; + }; + yield return new NetImportDefinition + { + Name = "IMDb List", + Enabled = Enabled, + EnableAuto = true, + ProfileId = 1, + Implementation = GetType().Name, + Settings = new RadarrSettings { Path = "/imdb/list?listId=LISTID" }, + }; } diff --git a/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs b/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs index edc69d6ee..e31032da9 100644 --- a/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs +++ b/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs @@ -27,7 +27,7 @@ namespace NzbDrone.Core.NetImport.Radarr Path = ""; } - [FieldDefinition(0, Label = "Radarr API URL", HelpText = "Link to to Radarr API URL.Use https://staging.api.radarr.video if you are on nightly.")] + [FieldDefinition(0, Label = "Radarr API URL", HelpText = "Link to to Radarr API URL. Use https://staging.api.radarr.video if you are on nightly.")] public string APIURL { get; set; } [FieldDefinition(1, Label = "Path to list", HelpText = "Path to the list proxied by the Radarr API. Check the wiki for available lists.")] diff --git a/src/NzbDrone.Core/NzbDrone.Core.csproj b/src/NzbDrone.Core/NzbDrone.Core.csproj index 2b4e26eb8..a77da315c 100644 --- a/src/NzbDrone.Core/NzbDrone.Core.csproj +++ b/src/NzbDrone.Core/NzbDrone.Core.csproj @@ -1289,7 +1289,7 @@ - +