aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-23 12:56:20 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-10-23 12:56:20 -0400
commit731bb1389aed8bd9713b3aa9ae48195ee8caeed5 (patch)
treea2d8e1193e5b0287e001e3e7771b17af895a8bb8
parent73b294b4cea8a242910124e493e317ab0fae5e92 (diff)
#595 - Linux/Unix file quantity limitation for ImagesByName/People folder
-rw-r--r--MediaBrowser.Server.Implementations/Library/LibraryManager.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
index 59ae9b734..cbe15aa62 100644
--- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs
+++ b/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) ?