trim organized file names

pull/702/head
Luke Pulverenti 11 years ago
parent 1f31c8dbfc
commit d748967c5d

@ -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) private string GetEpisodeFileName(string sourcePath, string seriesName, int seasonNumber, int episodeNumber, int? endingEpisodeNumber, string episodeTitle, TvFileOrganizationOptions options)
{ {
seriesName = _fileSystem.GetValidFilename(seriesName); seriesName = _fileSystem.GetValidFilename(seriesName).Trim();
episodeTitle = _fileSystem.GetValidFilename(episodeTitle); episodeTitle = _fileSystem.GetValidFilename(episodeTitle).Trim();
var sourceExtension = (Path.GetExtension(sourcePath) ?? string.Empty).TrimStart('.'); var sourceExtension = (Path.GetExtension(sourcePath) ?? string.Empty).TrimStart('.');

Loading…
Cancel
Save