Merge pull request #1709 from MediaBrowser/dev

Dev
This commit is contained in:
Luke 2016-05-04 15:00:39 -04:00
commit c27e415471

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;