mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-19 21:03:17 -07:00
Added the api for getting all movies by actor
This commit is contained in:
parent
08abb53923
commit
f138b28016
3 changed files with 24 additions and 0 deletions
|
@ -227,6 +227,14 @@ namespace Ombi.Core.Engine.V2
|
|||
return null;
|
||||
}
|
||||
|
||||
public async Task<ActorCredits> GetMoviesByActor(int actorId, string langCode)
|
||||
{
|
||||
var result = await Cache.GetOrAdd(nameof(GetMoviesByActor) + actorId + langCode,
|
||||
async () => await MovieApi.GetActorMovieCredits(actorId, langCode));
|
||||
//TODO need to run through the rules so we can get the availability etc
|
||||
return result;
|
||||
}
|
||||
|
||||
protected async Task<List<SearchMovieViewModel>> TransformMovieResultsToResponse(
|
||||
IEnumerable<MovieSearchResult> movies)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue