From e3bb4d9b5952b05da67ea8b253acd8b3e30efd01 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 20 Jun 2020 01:13:52 -0400 Subject: [PATCH] Fixed: Don't use staging API for Nightly, It's Down --- .../MetadataSource/RadarrAPI/RadarrAPIClient.cs | 9 +-------- src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs | 6 +++--- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/NzbDrone.Core/MetadataSource/RadarrAPI/RadarrAPIClient.cs b/src/NzbDrone.Core/MetadataSource/RadarrAPI/RadarrAPIClient.cs index 70b88f4f1..f6d8fe0d9 100644 --- a/src/NzbDrone.Core/MetadataSource/RadarrAPI/RadarrAPIClient.cs +++ b/src/NzbDrone.Core/MetadataSource/RadarrAPI/RadarrAPIClient.cs @@ -31,14 +31,7 @@ namespace NzbDrone.Core.MetadataSource.RadarrAPI { _httpClient = httpClient; - if (configFile.Branch == "nightly") - { - APIURL = "https://staging.api.radarr.video"; - } - else - { - APIURL = "https://api.radarr.video/v2"; - } + APIURL = "https://api.radarr.video/v2"; RadarrAPI = new HttpRequestBuilder(APIURL+"/{route}/{action}") .CreateFactory(); diff --git a/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs b/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs index e152cb4e5..8f68e5386 100644 --- a/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs +++ b/src/NzbDrone.Core/NetImport/Radarr/RadarrSettings.cs @@ -1,4 +1,4 @@ -using FluentValidation; +using FluentValidation; using NzbDrone.Common.Extensions; using NzbDrone.Core.Annotations; using NzbDrone.Core.ThingiProvider; @@ -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.")] 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.")] @@ -39,4 +39,4 @@ namespace NzbDrone.Core.NetImport.Radarr } } -} \ No newline at end of file +}