Made the search results the language specified in the search refinement

This commit is contained in:
tidusjar 2018-12-31 00:16:17 +00:00
parent ba15853ac1
commit ae0d0e614c
9 changed files with 85 additions and 18 deletions

View file

@ -43,9 +43,9 @@ namespace Ombi.Core.Engine
/// </summary>
/// <param name="theMovieDbId">The movie database identifier.</param>
/// <returns></returns>
public async Task<SearchMovieViewModel> LookupImdbInformation(int theMovieDbId)
public async Task<SearchMovieViewModel> LookupImdbInformation(int theMovieDbId, string langCode = "en")
{
var movieInfo = await MovieApi.GetMovieInformationWithExtraInfo(theMovieDbId);
var movieInfo = await MovieApi.GetMovieInformationWithExtraInfo(theMovieDbId, langCode);
var viewMovie = Mapper.Map<SearchMovieViewModel>(movieInfo);
return await ProcessSingleMovie(viewMovie, true);