mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-31 11:22:06 +00:00
Return MoveFile
This commit is contained in:
parent
7758db5324
commit
366034c969
1 changed files with 3 additions and 5 deletions
|
@ -47,9 +47,8 @@ public EpisodeFile MoveEpisodeFile(EpisodeFile episodeFile, Series series)
|
|||
var filePath = _buildFileNames.BuildFilePath(series, episodes.First().SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path));
|
||||
|
||||
_logger.Trace("Renaming episode file: {0} to {1}", episodeFile, filePath);
|
||||
MoveFile(episodeFile, series, filePath);
|
||||
|
||||
return episodeFile;
|
||||
|
||||
return MoveFile(episodeFile, series, filePath);
|
||||
}
|
||||
|
||||
public EpisodeFile MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode)
|
||||
|
@ -58,9 +57,8 @@ public EpisodeFile MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEp
|
|||
var filePath = _buildFileNames.BuildFilePath(localEpisode.Series, localEpisode.SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path));
|
||||
|
||||
_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)
|
||||
|
|
Loading…
Reference in a new issue