Browse Source

fix people names ending with a period

Luke Pulverenti 9 years ago
parent
commit
68ae463381
1 changed files with 4 additions and 1 deletions
  1. 4 1
      MediaBrowser.Server.Implementations/Library/LibraryManager.cs

+ 4 - 1
MediaBrowser.Server.Implementations/Library/LibraryManager.cs

@@ -909,7 +909,10 @@ namespace MediaBrowser.Server.Implementations.Library
                 throw new ArgumentNullException("name");
                 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;
             string subFolderPrefix = null;