fix(discover): 🐛 Display TV + movies on actor page in user language (#4395)

pull/4400/head
sephrat 3 years ago committed by GitHub
parent 02127e9813
commit fe635c7106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save