mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -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
|
@ -84,16 +84,15 @@ namespace Ombi.Api
|
|||
|
||||
public WatcherListStatusResultContainer ListMovies(string apiKey, Uri baseUrl)
|
||||
{
|
||||
var response = Send("liststatus", apiKey, baseUrl);
|
||||
var response = Send("liststatus", apiKey, baseUrl);
|
||||
try
|
||||
{
|
||||
if (response.Content.Contains("No movies found"))
|
||||
{
|
||||
return new WatcherListStatusResultContainer();
|
||||
}
|
||||
var items = JsonConvert.DeserializeObject<List<WatcherListStatusResult>>(response.Content);
|
||||
|
||||
return new WatcherListStatusResultContainer {Results = items};
|
||||
var items = JsonConvert.DeserializeObject<WatcherListStatusResultContainer>(response.Content);
|
||||
return items;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -115,9 +114,7 @@ namespace Ombi.Api
|
|||
{
|
||||
return new WatcherListStatusResultContainer();
|
||||
}
|
||||
var items = JsonConvert.DeserializeObject<List<WatcherListStatusResult>>(response.Content);
|
||||
|
||||
return new WatcherListStatusResultContainer { Results = items };
|
||||
return JsonConvert.DeserializeObject<WatcherListStatusResultContainer>(response.Content);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue