trim organized file names

This commit is contained in:
Luke Pulverenti 2014-01-26 23:29:01 -05:00
parent 1f31c8dbfc
commit d748967c5d

View File

@ -376,8 +376,8 @@ namespace MediaBrowser.Server.Implementations.FileOrganization
private string GetEpisodeFileName(string sourcePath, string seriesName, int seasonNumber, int episodeNumber, int? endingEpisodeNumber, string episodeTitle, TvFileOrganizationOptions options)
{
seriesName = _fileSystem.GetValidFilename(seriesName);
episodeTitle = _fileSystem.GetValidFilename(episodeTitle);
seriesName = _fileSystem.GetValidFilename(seriesName).Trim();
episodeTitle = _fileSystem.GetValidFilename(episodeTitle).Trim();
var sourceExtension = (Path.GetExtension(sourcePath) ?? string.Empty).TrimStart('.');