mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-08 06:00:50 -07:00
More work on watcher, should all be good now. #878
This commit is contained in:
parent
34e00e15c2
commit
add4e86d49
5 changed files with 56 additions and 2 deletions
|
@ -113,8 +113,8 @@ namespace Ombi.UI.Modules
|
|||
}
|
||||
try
|
||||
{
|
||||
var status = WatcherApi.ListMovies(settings.ApiKey, settings.FullUri);
|
||||
return !status.Error
|
||||
var status = WatcherApi.Version(settings.ApiKey, settings.FullUri);
|
||||
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}" });
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue