mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
fix(discover): 🐛 Display TV + movies on actor page in user language (#4395)
This commit is contained in:
parent
02127e9813
commit
fe635c7106
2 changed files with 2 additions and 0 deletions
|
@ -323,6 +323,7 @@ namespace Ombi.Core.Engine.V2
|
|||
|
||||
public async Task<ActorCredits> GetMoviesByActor(int actorId, string langCode)
|
||||
{
|
||||
langCode = await DefaultLanguageCode(langCode);
|
||||
var result = await Cache.GetOrAddAsync(nameof(GetMoviesByActor) + actorId + langCode,
|
||||
() => MovieApi.GetActorMovieCredits(actorId, langCode), DateTimeOffset.Now.AddHours(12));
|
||||
// Later we run this through the rules engine
|
||||
|
|
|
@ -149,6 +149,7 @@ namespace Ombi.Core.Engine.V2
|
|||
|
||||
public async Task<ActorCredits> GetTvByActor(int actorId, string langCode)
|
||||
{
|
||||
langCode = await DefaultLanguageCode(langCode);
|
||||
var result = await Cache.GetOrAddAsync(nameof(GetTvByActor) + actorId + langCode,
|
||||
() => _movieApi.GetActorTvCredits(actorId, langCode), DateTimeOffset.Now.AddHours(12));
|
||||
return result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue