don't use year in series folder name

This commit is contained in:
Luke Pulverenti 2016-09-15 02:38:09 -04:00
parent 38fec0a74a
commit c335521859

View File

@ -888,20 +888,9 @@ namespace MediaBrowser.Server.Implementations.LiveTv.EmbyTV
} }
var folderName = _fileSystem.GetValidFilename(timer.Name).Trim(); var folderName = _fileSystem.GetValidFilename(timer.Name).Trim();
var folderNameWithYear = folderName;
if (timer.ProductionYear.HasValue)
{
folderNameWithYear += " (" + timer.ProductionYear.Value.ToString(CultureInfo.InvariantCulture) + ")";
}
if (Directory.Exists(Path.Combine(recordPath, folderName))) // Can't use the year here in the folder name because it is the year of the episode, not the series.
{
recordPath = Path.Combine(recordPath, folderName); recordPath = Path.Combine(recordPath, folderName);
}
else
{
recordPath = Path.Combine(recordPath, folderNameWithYear);
}
if (timer.SeasonNumber.HasValue) if (timer.SeasonNumber.HasValue)
{ {