From 5c2c490cb28c102121d036b77d10fd79d844c0e2 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Thu, 25 Jul 2024 23:57:56 +0300 Subject: [PATCH] Improve messaging for renamed episode files progress info --- src/NzbDrone.Core/MediaFiles/RenameEpisodeFileService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NzbDrone.Core/MediaFiles/RenameEpisodeFileService.cs b/src/NzbDrone.Core/MediaFiles/RenameEpisodeFileService.cs index a4f9d97a9..8993ba661 100644 --- a/src/NzbDrone.Core/MediaFiles/RenameEpisodeFileService.cs +++ b/src/NzbDrone.Core/MediaFiles/RenameEpisodeFileService.cs @@ -164,8 +164,8 @@ namespace NzbDrone.Core.MediaFiles var episodeFiles = _mediaFileService.Get(message.Files); _logger.ProgressInfo("Renaming {0} files for {1}", episodeFiles.Count, series.Title); - RenameFiles(episodeFiles, series); - _logger.ProgressInfo("Selected episode files renamed for {0}", series.Title); + var renamedFiles = RenameFiles(episodeFiles, series); + _logger.ProgressInfo("{0} selected episode files renamed for {1}", renamedFiles.Count, series.Title); _eventAggregator.PublishEvent(new RenameCompletedEvent()); } @@ -179,8 +179,8 @@ namespace NzbDrone.Core.MediaFiles { var episodeFiles = _mediaFileService.GetFilesBySeries(series.Id); _logger.ProgressInfo("Renaming all files in series: {0}", series.Title); - RenameFiles(episodeFiles, series); - _logger.ProgressInfo("All episode files renamed for {0}", series.Title); + var renamedFiles = RenameFiles(episodeFiles, series); + _logger.ProgressInfo("{0} episode files renamed for {1}", renamedFiles.Count, series.Title); } _eventAggregator.PublishEvent(new RenameCompletedEvent());