mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
Api changed again, so more fixes for #878
This commit is contained in:
parent
d87aa95dea
commit
6048053c3c
10 changed files with 20 additions and 20 deletions
|
@ -114,7 +114,7 @@ namespace Ombi.UI.Modules
|
|||
try
|
||||
{
|
||||
var status = WatcherApi.Version(settings.ApiKey, settings.FullUri);
|
||||
return !status.response
|
||||
return status.response
|
||||
? Response.AsJson(new JsonResponseModel { Result = true, Message = "Connected to Watcher successfully!" })
|
||||
: Response.AsJson(new JsonResponseModel { Result = false, Message = $"Could not connect to Watcher, Error: {status.ErrorMessage}" });
|
||||
|
||||
|
|
|
@ -567,6 +567,7 @@ namespace Ombi.UI.Modules
|
|||
{
|
||||
if (ShouldAutoApprove(RequestType.Movie, settings, Username))
|
||||
{
|
||||
model.Approved = true;
|
||||
|
||||
var result = await MovieSender.Send(model);
|
||||
if (result.Result)
|
||||
|
@ -576,8 +577,7 @@ namespace Ombi.UI.Modules
|
|||
}
|
||||
if (!result.MovieSendingEnabled)
|
||||
{
|
||||
|
||||
model.Approved = true;
|
||||
|
||||
return await AddRequest(model, settings, $"{fullMovieName} {Resources.UI.Search_SuccessfullyAdded}");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue