Fixed the issue sending movies to Radarr #1513

Fixed typo #1524
This commit is contained in:
Jamie.Rees 2017-10-03 08:06:27 +01:00
commit 43a78f0e3c
3 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ namespace Ombi.Core
private async Task<MovieSenderResult> SendToRadarr(MovieRequests model, RadarrSettings settings)
{
var qualityToUse = int.Parse(settings.DefaultQualityProfile);
if (model.QualityOverride <= 0)
if (model.QualityOverride > 0)
{
qualityToUse = model.QualityOverride;
}

View file

@ -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)
{

View file

@ -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);