Allow series name in season folder

This commit is contained in:
Mark McDowall 2013-07-03 00:11:16 -07:00
parent ef4ad53277
commit a2d993138c
2 changed files with 4 additions and 2 deletions

View File

@ -78,8 +78,10 @@ namespace NzbDrone.Core.MediaFiles
string path = series.Path;
if (series.SeasonFolder)
{
//TODO: Allow series name
var seasonFolder = _configService.SortingSeasonFolderFormat
.Replace("%sn", series.Title)
.Replace("%s.n", series.Title.Replace(' ', '.'))
.Replace("%s_n", series.Title.Replace(' ', '_'))
.Replace("%0s", seasonNumber.ToString("00"))
.Replace("%s", seasonNumber.ToString());

View File

@ -113,7 +113,7 @@
<div class="controls">
<input type="text" placeholder="Season %s" name="seasonFolderFormat"/>
<span class="help-inline">
<i class="icon-question-sign" title="How should season folders be named? (Use %0s to pad to two digits)"/>
<i class="icon-question-sign" title="How should season folders be named? (Use %0s to pad to two digits, %sn for Series Name)"/>
</span>
</div>
</div>