Fixed: MapCoversToLocal for tmdbid queries to all movies endpoint

new-exclusion-lists
Qstick 4 years ago
parent 9986f0119b
commit ee456c3291

@ -104,7 +104,6 @@ namespace Radarr.Api.V3.Movies
{ {
var tmdbId = Request.GetIntegerQueryParameter("tmdbId"); var tmdbId = Request.GetIntegerQueryParameter("tmdbId");
var moviesResources = new List<MovieResource>(); var moviesResources = new List<MovieResource>();
var configLanguage = (Language)_configService.MovieInfoLanguage;
Dictionary<string, FileInfo> coverFileInfos = null; Dictionary<string, FileInfo> coverFileInfos = null;
@ -114,13 +113,12 @@ namespace Radarr.Api.V3.Movies
if (movie != null) if (movie != null)
{ {
var translations = _movieTranslationService.GetAllTranslationsForMovie(movie.Id); moviesResources.AddIfNotNull(MapToResource(movie));
var translation = GetMovieTranslation(translations, movie, configLanguage);
moviesResources.AddIfNotNull(movie.ToResource(_qualityUpgradableSpecification, translation));
} }
} }
else else
{ {
var configLanguage = (Language)_configService.MovieInfoLanguage;
var movieTask = Task.Run(() => _moviesService.GetAllMovies()); var movieTask = Task.Run(() => _moviesService.GetAllMovies());
var translations = _movieTranslationService var translations = _movieTranslationService

Loading…
Cancel
Save