1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-20 01:42:35 +01:00

Improve messaging for renamed movie files progress info

This commit is contained in:
Bogdan 2024-07-26 00:07:35 +03:00
parent 5559fa5fa5
commit 88127298ae

View File

@ -137,8 +137,8 @@ public void Execute(RenameFilesCommand message)
var movieFiles = _mediaFileService.GetMovies(message.Files);
_logger.ProgressInfo("Renaming {0} files for {1}", movieFiles.Count, movie.Title);
RenameFiles(movieFiles, movie);
_logger.ProgressInfo("Selected movie files renamed for {0}", movie.Title);
var renamedFiles = RenameFiles(movieFiles, movie);
_logger.ProgressInfo("{0} selected movie files renamed for {1}", renamedFiles.Count, movie.Title);
_eventAggregator.PublishEvent(new RenameCompletedEvent());
}
@ -152,8 +152,8 @@ public void Execute(RenameMovieCommand message)
{
var movieFiles = _mediaFileService.GetFilesByMovie(movie.Id);
_logger.ProgressInfo("Renaming movie files for {0}", movie.Title);
RenameFiles(movieFiles, movie);
_logger.ProgressInfo("All movie files renamed for {0}", movie.Title);
var renamedFiles = RenameFiles(movieFiles, movie);
_logger.ProgressInfo("{0} movie files renamed for {1}", renamedFiles.Count, movie.Title);
}
_eventAggregator.PublishEvent(new RenameCompletedEvent());