From e4d7ea9fd8079e8e94df4773c575065574eb7b5d Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 1 Sep 2013 21:03:49 -0700 Subject: [PATCH] Episodes will actually be renamed now --- NzbDrone.Core/MediaFiles/EpisodeFileMovingService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NzbDrone.Core/MediaFiles/EpisodeFileMovingService.cs b/NzbDrone.Core/MediaFiles/EpisodeFileMovingService.cs index e7a03d22a..ef230443b 100644 --- a/NzbDrone.Core/MediaFiles/EpisodeFileMovingService.cs +++ b/NzbDrone.Core/MediaFiles/EpisodeFileMovingService.cs @@ -43,6 +43,7 @@ public string MoveEpisodeFile(EpisodeFile episodeFile, Series series) var episodes = _episodeService.GetEpisodesByFileId(episodeFile.Id); var newFileName = _buildFileNames.BuildFilename(episodes, series, episodeFile); var filePath = _buildFileNames.BuildFilePath(series, episodes.First().SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path)); + MoveFile(episodeFile, filePath); return filePath; } @@ -51,7 +52,8 @@ public string MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode { var newFileName = _buildFileNames.BuildFilename(localEpisode.Episodes, localEpisode.Series, episodeFile); var filePath = _buildFileNames.BuildFilePath(localEpisode.Series, localEpisode.SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path)); - MoveFile(episodeFile, filePath); + MoveFile(episodeFile, filePath); + return filePath; }