mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
merge
This commit is contained in:
commit
7976d3d867
10 changed files with 269 additions and 5 deletions
|
@ -482,7 +482,7 @@ namespace PlexRequests.UI.Modules
|
|||
if (ShouldAutoApprove(RequestType.Movie, settings))
|
||||
{
|
||||
var cpSettings = await CpService.GetSettingsAsync();
|
||||
|
||||
model.Approved = true;
|
||||
if (cpSettings.Enabled)
|
||||
{
|
||||
Log.Info("Adding movie to CP (No approval required)");
|
||||
|
@ -500,7 +500,7 @@ namespace PlexRequests.UI.Modules
|
|||
Message = Resources.UI.Search_CouchPotatoError
|
||||
});
|
||||
}
|
||||
|
||||
model.Approved = true;
|
||||
return await AddRequest(model, settings, $"{fullMovieName} {Resources.UI.Search_SuccessfullyAdded}");
|
||||
}
|
||||
|
||||
|
@ -623,6 +623,7 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
if (ShouldAutoApprove(RequestType.TvShow, settings))
|
||||
{
|
||||
model.Approved = true;
|
||||
var sonarrSettings = await SonarrService.GetSettingsAsync();
|
||||
var sender = new TvSender(SonarrApi, SickrageApi);
|
||||
if (sonarrSettings.Enabled)
|
||||
|
@ -737,6 +738,7 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
if (ShouldAutoApprove(RequestType.Album, settings))
|
||||
{
|
||||
model.Approved = true;
|
||||
var hpSettings = HeadphonesService.GetSettings();
|
||||
|
||||
if (!hpSettings.Enabled)
|
||||
|
@ -907,8 +909,6 @@ namespace PlexRequests.UI.Modules
|
|||
|
||||
private async Task<Response> AddRequest(RequestedModel model, PlexRequestSettings settings, string message)
|
||||
{
|
||||
|
||||
model.Approved = true;
|
||||
await RequestService.AddRequestAsync(model);
|
||||
|
||||
if (ShouldSendNotification(model.Type, settings))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue