From 43a78f0e3cbb02559e63902530e54c0b3690da05 Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Tue, 3 Oct 2017 08:06:27 +0100 Subject: [PATCH] Fixed the issue sending movies to Radarr #1513 Fixed typo #1524 --- src/Ombi.Core/Senders/MovieSender.cs | 2 +- src/Ombi.Notifications/Agents/DiscordNotification.cs | 4 ++-- .../Models/Notifications/DiscordNotificationSettings.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ombi.Core/Senders/MovieSender.cs b/src/Ombi.Core/Senders/MovieSender.cs index 25795b5ee..bb5738978 100644 --- a/src/Ombi.Core/Senders/MovieSender.cs +++ b/src/Ombi.Core/Senders/MovieSender.cs @@ -53,7 +53,7 @@ namespace Ombi.Core private async Task SendToRadarr(MovieRequests model, RadarrSettings settings) { var qualityToUse = int.Parse(settings.DefaultQualityProfile); - if (model.QualityOverride <= 0) + if (model.QualityOverride > 0) { qualityToUse = model.QualityOverride; } diff --git a/src/Ombi.Notifications/Agents/DiscordNotification.cs b/src/Ombi.Notifications/Agents/DiscordNotification.cs index 9e48e771e..92cd8bdf2 100644 --- a/src/Ombi.Notifications/Agents/DiscordNotification.cs +++ b/src/Ombi.Notifications/Agents/DiscordNotification.cs @@ -42,7 +42,7 @@ namespace Ombi.Notifications.Agents try { var a = settings.Token; - var b = settings.WebookId; + var b = settings.WebHookId; } catch (IndexOutOfRangeException) { @@ -164,7 +164,7 @@ namespace Ombi.Notifications.Agents }; } - await Api.SendMessage(discordBody, settings.WebookId, settings.Token); + await Api.SendMessage(discordBody, settings.WebHookId, settings.Token); } catch (Exception e) { diff --git a/src/Ombi.Settings/Settings/Models/Notifications/DiscordNotificationSettings.cs b/src/Ombi.Settings/Settings/Models/Notifications/DiscordNotificationSettings.cs index 3352d7153..2616fa4c3 100644 --- a/src/Ombi.Settings/Settings/Models/Notifications/DiscordNotificationSettings.cs +++ b/src/Ombi.Settings/Settings/Models/Notifications/DiscordNotificationSettings.cs @@ -10,7 +10,7 @@ namespace Ombi.Settings.Settings.Models.Notifications public string Username { get; set; } [JsonIgnore] - public string WebookId => SplitWebUrl(4); + public string WebHookId => SplitWebUrl(4); [JsonIgnore] public string Token => SplitWebUrl(5);