Episodes will actually be renamed now

This commit is contained in:
Mark McDowall 2013-09-01 21:03:49 -07:00
parent ffce325edb
commit e4d7ea9fd8
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@ namespace NzbDrone.Core.MediaFiles
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;
}
@ -52,6 +53,7 @@ namespace NzbDrone.Core.MediaFiles
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);
return filePath;
}