mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 05:43:19 -07:00
Fixed #2802 the issue where "Issues" were not being deleted correctly.
This commit is contained in:
parent
e83a8d045d
commit
5b1f326854
5 changed files with 17 additions and 18 deletions
|
@ -49,7 +49,6 @@ namespace Ombi.Core.Senders
|
|||
{
|
||||
try
|
||||
{
|
||||
|
||||
var cpSettings = await CouchPotatoSettings.GetSettingsAsync();
|
||||
//var watcherSettings = await WatcherSettings.GetSettingsAsync();
|
||||
var radarrSettings = await RadarrSettings.GetSettingsAsync();
|
||||
|
@ -76,7 +75,7 @@ namespace Ombi.Core.Senders
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.LogError(e, "Error when seing movie to DVR app, added to the request queue");
|
||||
Log.LogError(e, "Error when sending movie to DVR app, added to the request queue");
|
||||
|
||||
// Check if already in request quee
|
||||
var existingQueue = await _requestQueuRepository.FirstOrDefaultAsync(x => x.RequestId == model.Id);
|
||||
|
|
|
@ -57,7 +57,7 @@ namespace Ombi.Core.Senders
|
|||
var sonarr = await SonarrSettings.GetSettingsAsync();
|
||||
if (sonarr.Enabled)
|
||||
{
|
||||
var result = await SendToSonarr(model);
|
||||
var result = await SendToSonarr(model, sonarr);
|
||||
if (result != null)
|
||||
{
|
||||
return new SenderResult
|
||||
|
@ -109,7 +109,7 @@ namespace Ombi.Core.Senders
|
|||
catch (Exception e)
|
||||
{
|
||||
Logger.LogError(e, "Exception thrown when sending a movie to DVR app, added to the request queue");
|
||||
// Check if already in request quee
|
||||
// Check if already in request queue
|
||||
var existingQueue = await _requestQueueRepository.FirstOrDefaultAsync(x => x.RequestId == model.Id);
|
||||
if (existingQueue != null)
|
||||
{
|
||||
|
@ -134,7 +134,7 @@ namespace Ombi.Core.Senders
|
|||
return new SenderResult
|
||||
{
|
||||
Success = false,
|
||||
Message = "Something wen't wrong!"
|
||||
Message = "Something went wrong!"
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -150,13 +150,8 @@ namespace Ombi.Core.Senders
|
|||
/// <param name="s"></param>
|
||||
/// <param name="model"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<NewSeries> SendToSonarr(ChildRequests model)
|
||||
public async Task<NewSeries> SendToSonarr(ChildRequests model, SonarrSettings s)
|
||||
{
|
||||
var s = await SonarrSettings.GetSettingsAsync();
|
||||
if (!s.Enabled)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
if (string.IsNullOrEmpty(s.ApiKey))
|
||||
{
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue