diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-20 13:17:03 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-03-20 13:17:03 -0400 |
| commit | 6df78dcb342bd38792cde75498292e3f6ef15fd7 (patch) | |
| tree | 0682ea63cd9771ab44d1ad494ade37490d6b0a7d /MediaBrowser.Server.Implementations/Library/LibraryManager.cs | |
| parent | 881928323e16b1cf9a4831753a3da521c38b6e47 (diff) | |
improve people naming
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/LibraryManager.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 1f82e7ef1..64e5d20c9 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -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) ? |
