Ensure the images are mapped correctly after updating a movie

This commit is contained in:
Bogdan 2023-09-11 18:52:50 +03:00
parent 0386ea9b71
commit e3abda9afc
1 changed files with 1 additions and 5 deletions

View File

@ -248,12 +248,8 @@ namespace Radarr.Api.V3.Movies
var model = moviesResource.ToModel(movie);
var updatedMovie = _moviesService.UpdateMovie(model);
var availDelay = _configService.AvailabilityDelay;
var translations = _movieTranslationService.GetAllTranslationsForMovieMetadata(movie.MovieMetadataId);
var translation = GetMovieTranslation(translations, movie.MovieMetadata, (Language)_configService.MovieInfoLanguage);
BroadcastResourceChange(ModelAction.Updated, updatedMovie.ToResource(availDelay, translation, _qualityUpgradableSpecification));
BroadcastResourceChange(ModelAction.Updated, MapToResource(updatedMovie));
return Accepted(moviesResource.Id);
}