mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
CalculateFilePath will use configured season folder, with tests.
MoveFile creates folder before move.
This commit is contained in:
parent
a31858bb4c
commit
584a96a4f2
3 changed files with 33 additions and 6 deletions
|
@ -83,7 +83,11 @@ namespace NzbDrone.Core.Providers
|
|||
string path = series.Path;
|
||||
if (series.SeasonFolder)
|
||||
{
|
||||
path = Path.Combine(path, "Season " + seasonNumber);
|
||||
var seasonFolder = _configProvider.SeasonFolderFormat
|
||||
.Replace("%0s", seasonNumber.ToString("00"))
|
||||
.Replace("%s", seasonNumber.ToString());
|
||||
|
||||
path = Path.Combine(path, seasonFolder);
|
||||
}
|
||||
|
||||
path = Path.Combine(path, fileName + extention);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue