Skip to content

Commit

Permalink
fixed #1121
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie.Rees authored and Jamie.Rees committed Mar 10, 2017
1 parent 0c94bd3 commit a130abc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Ombi.Services/Jobs/FaultQueueHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,15 @@ private void ProcessMissingInformation(List<RequestQueue> requests)
}
else
{
// Make sure it's been requested
var existingRequests = RequestService.GetAll();
var thisItem = existingRequests.Any(x => x.Title.Equals(tvModel.Title));
if (!thisItem)
{
tvModel.Approved = true;
RequestService.AddRequest(tvModel);
}

// Successful, remove from the fault queue
Repo.Delete(t);
}
Expand Down Expand Up @@ -261,7 +270,6 @@ private void ProcessTransientErrors(List<RequestQueue> requests)
{
var sonarrSettings = SonarrSettings.GetSettings();
var sickrageSettings = SickrageSettings.GetSettings();
var cpSettings = CpSettings.GetSettings();
var hpSettings = HeadphoneSettings.GetSettings();

if (!requests.Any())
Expand Down

0 comments on commit a130abc

Please sign in to comment.