mirror of
https://github.com/Radarr/Radarr
synced 2025-12-24 01:10:41 +01:00
Fixed: MapCoversToLocal for tmdbid queries to all movies endpoint
This commit is contained in:
parent
9986f0119b
commit
ee456c3291
1 changed files with 2 additions and 4 deletions
|
|
@ -104,7 +104,6 @@ private List<MovieResource> AllMovie()
|
|||
{
|
||||
var tmdbId = Request.GetIntegerQueryParameter("tmdbId");
|
||||
var moviesResources = new List<MovieResource>();
|
||||
var configLanguage = (Language)_configService.MovieInfoLanguage;
|
||||
|
||||
Dictionary<string, FileInfo> coverFileInfos = null;
|
||||
|
||||
|
|
@ -114,13 +113,12 @@ private List<MovieResource> AllMovie()
|
|||
|
||||
if (movie != null)
|
||||
{
|
||||
var translations = _movieTranslationService.GetAllTranslationsForMovie(movie.Id);
|
||||
var translation = GetMovieTranslation(translations, movie, configLanguage);
|
||||
moviesResources.AddIfNotNull(movie.ToResource(_qualityUpgradableSpecification, translation));
|
||||
moviesResources.AddIfNotNull(MapToResource(movie));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
var configLanguage = (Language)_configService.MovieInfoLanguage;
|
||||
var movieTask = Task.Run(() => _moviesService.GetAllMovies());
|
||||
|
||||
var translations = _movieTranslationService
|
||||
|
|
|
|||
Loading…
Reference in a new issue