mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
cache the couchpotato wanted list, update it on an interval, and use it to determine if a movie has been queued already
This commit is contained in:
parent
e8fb28a024
commit
6ed7df2c21
13 changed files with 283 additions and 11 deletions
|
@ -115,5 +115,16 @@ namespace PlexRequests.Api
|
|||
|
||||
return Api.Execute<CouchPotatoProfiles>(request, url);
|
||||
}
|
||||
|
||||
public CouchPotatoMovies GetMovies(Uri baseUrl, string apiKey, string[] status)
|
||||
{
|
||||
RestRequest request;
|
||||
request = new RestRequest { Resource = "/api/{apikey}/movie.list?status={status}" };
|
||||
|
||||
request.AddUrlSegment("apikey", apiKey);
|
||||
request.AddUrlSegment("status", string.Join(",", status));
|
||||
|
||||
return Api.Execute<CouchPotatoMovies>(request, baseUrl);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue