@ -482,7 +482,7 @@ namespace PlexRequests.UI.Modules
if ( ShouldAutoApprove ( RequestType . Movie , settings ) )
if ( ShouldAutoApprove ( RequestType . Movie , settings ) )
{
{
var cpSettings = await CpService . GetSettingsAsync ( ) ;
var cpSettings = await CpService . GetSettingsAsync ( ) ;
model . Approved = true ;
if ( cpSettings . Enabled )
if ( cpSettings . Enabled )
{
{
Log . Info ( "Adding movie to CP (No approval required)" ) ;
Log . Info ( "Adding movie to CP (No approval required)" ) ;
@ -500,7 +500,7 @@ namespace PlexRequests.UI.Modules
Message = Resources . UI . Search_CouchPotatoError
Message = Resources . UI . Search_CouchPotatoError
} ) ;
} ) ;
}
}
model . Approved = true ;
return await AddRequest ( model , settings , $"{fullMovieName} {Resources.UI.Search_SuccessfullyAdded}" ) ;
return await AddRequest ( model , settings , $"{fullMovieName} {Resources.UI.Search_SuccessfullyAdded}" ) ;
}
}
@ -623,6 +623,7 @@ namespace PlexRequests.UI.Modules
if ( ShouldAutoApprove ( RequestType . TvShow , settings ) )
if ( ShouldAutoApprove ( RequestType . TvShow , settings ) )
{
{
model . Approved = true ;
var sonarrSettings = await SonarrService . GetSettingsAsync ( ) ;
var sonarrSettings = await SonarrService . GetSettingsAsync ( ) ;
var sender = new TvSender ( SonarrApi , SickrageApi ) ;
var sender = new TvSender ( SonarrApi , SickrageApi ) ;
if ( sonarrSettings . Enabled )
if ( sonarrSettings . Enabled )
@ -737,6 +738,7 @@ namespace PlexRequests.UI.Modules
if ( ShouldAutoApprove ( RequestType . Album , settings ) )
if ( ShouldAutoApprove ( RequestType . Album , settings ) )
{
{
model . Approved = true ;
var hpSettings = HeadphonesService . GetSettings ( ) ;
var hpSettings = HeadphonesService . GetSettings ( ) ;
if ( ! hpSettings . Enabled )
if ( ! hpSettings . Enabled )
@ -907,8 +909,6 @@ namespace PlexRequests.UI.Modules
private async Task < Response > AddRequest ( RequestedModel model , PlexRequestSettings settings , string message )
private async Task < Response > AddRequest ( RequestedModel model , PlexRequestSettings settings , string message )
{
{
model . Approved = true ;
await RequestService . AddRequestAsync ( model ) ;
await RequestService . AddRequestAsync ( model ) ;
if ( ShouldSendNotification ( model . Type , settings ) )
if ( ShouldSendNotification ( model . Type , settings ) )