浏览代码

#595 - Linux/Unix file quantity limitation for ImagesByName/People folder

Luke Pulverenti 11 年之前
父节点
当前提交
731bb1389a
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      MediaBrowser.Server.Implementations/Library/LibraryManager.cs

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

@@ -701,18 +701,13 @@ namespace MediaBrowser.Server.Implementations.Library
                 throw new ArgumentNullException();
             }
 
-            var validFilename = FileSystem.GetValidFilename(name);
+            var validFilename = FileSystem.GetValidFilename(name).Trim();
 
             string subFolderPrefix = null;
 
             if (typeof(T) == typeof(Person) && ConfigurationManager.Configuration.EnablePeoplePrefixSubFolders)
             {
                 subFolderPrefix = validFilename.Substring(0, 1);
-
-                if (string.IsNullOrWhiteSpace(subFolderPrefix))
-                {
-                    subFolderPrefix = "0";
-                }
             }
 
             var key = string.IsNullOrEmpty(subFolderPrefix) ?