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:
parent
5559fa5fa5
commit
88127298ae
@ -137,8 +137,8 @@ public void Execute(RenameFilesCommand message)
|
|||||||
var movieFiles = _mediaFileService.GetMovies(message.Files);
|
var movieFiles = _mediaFileService.GetMovies(message.Files);
|
||||||
|
|
||||||
_logger.ProgressInfo("Renaming {0} files for {1}", movieFiles.Count, movie.Title);
|
_logger.ProgressInfo("Renaming {0} files for {1}", movieFiles.Count, movie.Title);
|
||||||
RenameFiles(movieFiles, movie);
|
var renamedFiles = RenameFiles(movieFiles, movie);
|
||||||
_logger.ProgressInfo("Selected movie files renamed for {0}", movie.Title);
|
_logger.ProgressInfo("{0} selected movie files renamed for {1}", renamedFiles.Count, movie.Title);
|
||||||
|
|
||||||
_eventAggregator.PublishEvent(new RenameCompletedEvent());
|
_eventAggregator.PublishEvent(new RenameCompletedEvent());
|
||||||
}
|
}
|
||||||
@ -152,8 +152,8 @@ public void Execute(RenameMovieCommand message)
|
|||||||
{
|
{
|
||||||
var movieFiles = _mediaFileService.GetFilesByMovie(movie.Id);
|
var movieFiles = _mediaFileService.GetFilesByMovie(movie.Id);
|
||||||
_logger.ProgressInfo("Renaming movie files for {0}", movie.Title);
|
_logger.ProgressInfo("Renaming movie files for {0}", movie.Title);
|
||||||
RenameFiles(movieFiles, movie);
|
var renamedFiles = RenameFiles(movieFiles, movie);
|
||||||
_logger.ProgressInfo("All movie files renamed for {0}", movie.Title);
|
_logger.ProgressInfo("{0} movie files renamed for {1}", renamedFiles.Count, movie.Title);
|
||||||
}
|
}
|
||||||
|
|
||||||
_eventAggregator.PublishEvent(new RenameCompletedEvent());
|
_eventAggregator.PublishEvent(new RenameCompletedEvent());
|
||||||
|
Loading…
Reference in New Issue
Block a user