mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
fix(discover): TV shows now display on the Actor Pages (#4388)
* Add TV shows to Actor discover page * Fix actor page not loading after actor change * Remove user filter from discover actor page * Clean up code
This commit is contained in:
parent
907353a54d
commit
6b716e7220
8 changed files with 57 additions and 12 deletions
|
@ -139,6 +139,16 @@ namespace Ombi.Api.TheMovieDb
|
|||
var result = await Api.Request<ActorCredits>(request);
|
||||
return result;
|
||||
}
|
||||
|
||||
public async Task<ActorCredits> GetActorTvCredits(int actorId, string langCode)
|
||||
{
|
||||
var request = new Request($"person/{actorId}/tv_credits", BaseUri, HttpMethod.Get);
|
||||
request.AddQueryString("api_key", ApiToken);
|
||||
request.AddQueryString("language", langCode);
|
||||
|
||||
var result = await Api.Request<ActorCredits>(request);
|
||||
return result;
|
||||
}
|
||||
|
||||
public async Task<List<TvSearchResult>> SearchTv(string searchTerm, string year = default)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue