fix people names ending with a period

This commit is contained in:
Luke Pulverenti 2016-05-04 13:29:24 -04:00
parent 107d1fc4f1
commit 68ae463381

View File

@ -909,7 +909,10 @@ namespace MediaBrowser.Server.Implementations.Library
throw new ArgumentNullException("name");
}
var validFilename = _fileSystem.GetValidFilename(name).Trim();
// Trim the period at the end because windows will have a hard time with that
var validFilename = _fileSystem.GetValidFilename(name)
.Trim()
.TrimEnd('.');
string subFolderPrefix = null;