mirror of
https://github.com/Radarr/Radarr
synced 2025-12-25 09:42:24 +01:00
Fixed: Don't use staging API for Nightly, It's Down
This commit is contained in:
parent
e973701f1c
commit
e3bb4d9b59
2 changed files with 4 additions and 11 deletions
|
|
@ -31,14 +31,7 @@ public RadarrAPIClient(IConfigFileProvider configFile, IHttpClient httpClient)
|
|||
{
|
||||
_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();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using FluentValidation;
|
||||
using FluentValidation;
|
||||
using NzbDrone.Common.Extensions;
|
||||
using NzbDrone.Core.Annotations;
|
||||
using NzbDrone.Core.ThingiProvider;
|
||||
|
|
@ -27,7 +27,7 @@ public RadarrSettings()
|
|||
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 @@ public NzbDroneValidationResult Validate()
|
|||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue