mirror of
https://github.com/Radarr/Radarr.git
synced 2024-10-05 15:47:20 +02:00
Fixed: Remove Notifiarr Environment Option
This commit is contained in:
parent
9ba7027d00
commit
97077e09d2
@ -1,8 +0,0 @@
|
||||
namespace NzbDrone.Core.Notifications.Notifiarr
|
||||
{
|
||||
public enum NotifiarrEnvironment
|
||||
{
|
||||
Live,
|
||||
Development
|
||||
}
|
||||
}
|
@ -79,7 +79,7 @@ private void ProcessNotification(StringDictionary message, NotifiarrSettings set
|
||||
{
|
||||
try
|
||||
{
|
||||
var url = settings.Environment == (int)NotifiarrEnvironment.Development ? "https://dev.notifiarr.com" : "https://notifiarr.com";
|
||||
var url = "https://notifiarr.com";
|
||||
var requestBuilder = new HttpRequestBuilder(url + "/api/v1/notification/radarr/" + settings.APIKey).Post();
|
||||
requestBuilder.AddFormParameter("instanceName", settings.InstanceName).Build();
|
||||
|
||||
|
@ -21,8 +21,6 @@ public class NotifiarrSettings : IProviderConfig
|
||||
public string APIKey { get; set; }
|
||||
[FieldDefinition(1, Label = "Instance Name", Advanced = true, HelpText = "Unique name for this instance", HelpLink = "https://notifiarr.com")]
|
||||
public string InstanceName { get; set; }
|
||||
[FieldDefinition(2, Label = "Environment", Advanced = true, Type = FieldType.Select, SelectOptions = typeof(NotifiarrEnvironment), HelpText = "Live unless told otherwise", HelpLink = "https://notifiarr.com")]
|
||||
public int Environment { get; set; }
|
||||
|
||||
public NzbDroneValidationResult Validate()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user