improve people naming

This commit is contained in:
Luke Pulverenti
2015-03-20 13:17:03 -04:00
parent 881928323e
commit 6df78dcb34
4 changed files with 10 additions and 29 deletions

View File

@@ -886,7 +886,14 @@ namespace MediaBrowser.Server.Implementations.Library
if (type == typeof(Person))
{
subFolderPrefix = validFilename.Substring(0, 1);
var subFolderIndex = 0;
while (!char.IsLetterOrDigit(validFilename[subFolderIndex]))
{
subFolderIndex++;
}
subFolderPrefix = validFilename.Substring(subFolderIndex, 1);
}
var fullPath = string.IsNullOrEmpty(subFolderPrefix) ?