Return MoveFile

This commit is contained in:
Mark McDowall 2014-02-27 16:42:04 -08:00
parent 7758db5324
commit 366034c969
1 changed files with 3 additions and 5 deletions

View File

@ -47,9 +47,8 @@ namespace NzbDrone.Core.MediaFiles
var filePath = _buildFileNames.BuildFilePath(series, episodes.First().SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path)); var filePath = _buildFileNames.BuildFilePath(series, episodes.First().SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path));
_logger.Trace("Renaming episode file: {0} to {1}", episodeFile, filePath); _logger.Trace("Renaming episode file: {0} to {1}", episodeFile, filePath);
MoveFile(episodeFile, series, filePath);
return MoveFile(episodeFile, series, filePath);
return episodeFile;
} }
public EpisodeFile MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) public EpisodeFile MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode)
@ -58,9 +57,8 @@ namespace NzbDrone.Core.MediaFiles
var filePath = _buildFileNames.BuildFilePath(localEpisode.Series, localEpisode.SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path)); var filePath = _buildFileNames.BuildFilePath(localEpisode.Series, localEpisode.SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path));
_logger.Trace("Moving episode file: {0} to {1}", episodeFile, filePath); _logger.Trace("Moving episode file: {0} to {1}", episodeFile, filePath);
MoveFile(episodeFile, localEpisode.Series, filePath);
return episodeFile; return MoveFile(episodeFile, localEpisode.Series, filePath);
} }
private EpisodeFile MoveFile(EpisodeFile episodeFile, Series series, string destinationFilename) private EpisodeFile MoveFile(EpisodeFile episodeFile, Series series, string destinationFilename)