returnResponse.AsJson(newJsonResponseModel{Result=true,Message="We have sent the approval to Headphones for processing, This can take a few minutes."});
returnResponse.AsJson(newJsonResponseModel{Result=true,Message="We have sent the approval to Headphones for processing, This can take a few minutes."});
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"{fullShowName} is already in Plex!"});
}
}
catch(ApplicationSettingsException)
catch(Exception)
{
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=$"We could not check if {fullShowName} is in Plex, are you sure it's correctly setup?"});
returnResponse.AsJson(newJsonResponseModel{Result=false,Message=result?.message!=null?"<b>Message From SickRage: </b>"+result.message:"Something went wrong adding the movie to SickRage! Please check your settings."});
}
if(!srSettings.Enabled&&!sonarrSettings.Enabled)
{
model.Approved=true;
Log.Debug("Adding tv to database requests (No approval required) and Sonarr/Sickrage not setup");
RequestService.AddRequest(model);
if(ShouldSendNotification())
{
varnotify2=newNotificationModel
{
Title=model.Title,
User=Username,
DateTime=DateTime.Now,
NotificationType=NotificationType.NewRequest
};
NotificationService.Publish(notify2);
}
returnResponse.AsJson(newJsonResponseModel{Result=true,Message=$"{fullShowName} was successfully added!"});
}
returnResponse.AsJson(newJsonResponseModel{Result=false,Message="The request of TV Shows is not correctly set up. Please contact your admin."});