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