mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
Implement https://trello.com/c/a1il1sTd
modified: NzbDrone.Core/MediaFiles/EpisodeFileMovingService.cs -modified: DiskProvider.cs added SetFolderAccessTime to the interface added SetFolderAccessTime function -modified MoveEpisodeFile.cs call SetFolderAccessTime from both MoveEpisodeFile
This commit is contained in:
parent
9fa4cedb71
commit
f9384d48dd
2 changed files with 9 additions and 0 deletions
|
@ -43,6 +43,8 @@ namespace NzbDrone.Core.MediaFiles
|
|||
var newFileName = _buildFileNames.BuildFilename(episodes, series, episodeFile);
|
||||
var filePath = _buildFileNames.BuildFilePath(series, episodes.First().SeasonNumber, newFileName, Path.GetExtension(episodeFile.Path));
|
||||
MoveFile(episodeFile, filePath);
|
||||
_diskProvider.SetFolderAccessTime( Path.GetDirectoryName(filePath), episodeFile.DateAdded);
|
||||
_diskProvider.SetFolderAccessTime( series.Path, episodeFile.DateAdded);
|
||||
|
||||
return filePath;
|
||||
}
|
||||
|
@ -52,6 +54,8 @@ 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);
|
||||
_diskProvider.SetFolderAccessTime( Path.GetDirectoryName(filePath), episodeFile.DateAdded);
|
||||
_diskProvider.SetFolderAccessTime( localEpisode.Series.Path, episodeFile.DateAdded);
|
||||
|
||||
return filePath;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue