diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-11-04 13:17:03 -0500 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-11-04 13:17:03 -0500 |
| commit | e89a0d080bc07d3933985eb281a67d0c1f40fce3 (patch) | |
| tree | d0f2e69112fc787af271eae54158ecb317f5aac0 /MediaBrowser.Server.Implementations/Library/LibraryManager.cs | |
| parent | 764e2625bf22ffbd373741d77c5700616235d4d4 (diff) | |
| parent | 4b886ea93f3a9c295ff1da36a6cdf33c677de5e5 (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LibraryManager.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/LibraryManager.cs | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index 1aa9e5b9c..9197328bd 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -1430,10 +1430,22 @@ namespace MediaBrowser.Server.Implementations.Library .OfType<CollectionFolder>() .Where(i => { + var locationType = i.LocationType; + + if (locationType == LocationType.Remote || locationType == LocationType.Virtual) + { + return false; + } + + if (string.Equals(i.Path, item.Path, StringComparison.OrdinalIgnoreCase)) + { + return true; + } + try { - return i.LocationType != LocationType.Remote && i.LocationType != LocationType.Virtual && - i.ResolveArgs.PhysicalLocations.Contains(item.Path); + + return i.ResolveArgs.PhysicalLocations.Contains(item.Path); } catch (IOException ex) { |
