diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-24 13:48:48 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-24 13:48:48 -0400 |
| commit | 7a5ba39603c2a0c970c619016686431b7ff14df1 (patch) | |
| tree | d80da83a6f8b0bfd5d59cb204a933ab90c36f219 /MediaBrowser.Api/Library/LibraryHelpers.cs | |
| parent | 398b658dbe72c6efa932b9d097916ea586b8eb9f (diff) | |
fixes #305 - Multiple collections
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryHelpers.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryHelpers.cs | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/MediaBrowser.Api/Library/LibraryHelpers.cs b/MediaBrowser.Api/Library/LibraryHelpers.cs index ff0915d78..d3b7861a6 100644 --- a/MediaBrowser.Api/Library/LibraryHelpers.cs +++ b/MediaBrowser.Api/Library/LibraryHelpers.cs @@ -203,7 +203,6 @@ namespace MediaBrowser.Api.Library { // Example: D:\Movies is the existing path // D:\ cannot be added - // Neither can D:\Movies\Kids // A D:\Movies duplicate is ok here since that will be caught later if (newPath.Equals(existingPath, StringComparison.OrdinalIgnoreCase)) @@ -211,12 +210,6 @@ namespace MediaBrowser.Api.Library return true; } - // Validate the D:\Movies\Kids scenario - if (newPath.StartsWith(existingPath.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)) - { - return false; - } - // Validate the D:\ scenario if (existingPath.StartsWith(newPath.TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)) { |
