mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 12:59:39 -07:00
fixed #1121
This commit is contained in:
parent
0c94bd30e5
commit
a130abcc71
1 changed files with 9 additions and 1 deletions
|
@ -158,6 +158,15 @@ namespace Ombi.Services.Jobs
|
||||||
}
|
}
|
||||||
else
|
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
|
// Successful, remove from the fault queue
|
||||||
Repo.Delete(t);
|
Repo.Delete(t);
|
||||||
}
|
}
|
||||||
|
@ -261,7 +270,6 @@ namespace Ombi.Services.Jobs
|
||||||
{
|
{
|
||||||
var sonarrSettings = SonarrSettings.GetSettings();
|
var sonarrSettings = SonarrSettings.GetSettings();
|
||||||
var sickrageSettings = SickrageSettings.GetSettings();
|
var sickrageSettings = SickrageSettings.GetSettings();
|
||||||
var cpSettings = CpSettings.GetSettings();
|
|
||||||
var hpSettings = HeadphoneSettings.GetSettings();
|
var hpSettings = HeadphoneSettings.GetSettings();
|
||||||
|
|
||||||
if (!requests.Any())
|
if (!requests.Any())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue