Fixed: Don't use staging API for Nightly, It's Down

Qstick 4 years ago
parent e973701f1c
commit e3bb4d9b59

@ -31,14 +31,7 @@ namespace NzbDrone.Core.MetadataSource.RadarrAPI
{ {
_httpClient = httpClient; _httpClient = httpClient;
if (configFile.Branch == "nightly") APIURL = "https://api.radarr.video/v2";
{
APIURL = "https://staging.api.radarr.video";
}
else
{
APIURL = "https://api.radarr.video/v2";
}
RadarrAPI = new HttpRequestBuilder(APIURL+"/{route}/{action}") RadarrAPI = new HttpRequestBuilder(APIURL+"/{route}/{action}")
.CreateFactory(); .CreateFactory();

@ -1,4 +1,4 @@
using FluentValidation; using FluentValidation;
using NzbDrone.Common.Extensions; using NzbDrone.Common.Extensions;
using NzbDrone.Core.Annotations; using NzbDrone.Core.Annotations;
using NzbDrone.Core.ThingiProvider; using NzbDrone.Core.ThingiProvider;
@ -27,7 +27,7 @@ namespace NzbDrone.Core.NetImport.Radarr
Path = ""; 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; } 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.")] [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
} }
} }
} }

Loading…
Cancel
Save