diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-06 15:07:39 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-12-06 15:07:39 -0500 |
| commit | eac0ab9d59b4950cf622fafe7d81bd1bed09d2b1 (patch) | |
| tree | 2916b5c3486e802d059010b2e8917a7a530ca61e | |
| parent | 63c9104e624d0d22e6c5baf79db2d7bb9deb74d0 (diff) | |
| parent | fe11b15a00e0d9599ddf0a873f33b5f46f3e390f (diff) | |
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
| -rw-r--r-- | MediaBrowser.Controller/Entities/Folder.cs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index ba2bd85e8..e7593b075 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -1212,7 +1212,7 @@ namespace MediaBrowser.Controller.Entities { var changed = await base.RefreshMetadata(cancellationToken, forceSave, forceRefresh, allowSlowProviders, resetResolveArgs).ConfigureAwait(false); - return changed || (SupportsShortcutChildren && LocationType == LocationType.FileSystem && RefreshLinkedChildren()); + return (SupportsShortcutChildren && LocationType == LocationType.FileSystem && RefreshLinkedChildren()) || changed; } /// <summary> @@ -1362,14 +1362,10 @@ namespace MediaBrowser.Controller.Entities //this should be functionally equivilent to what was here since it is IEnum and works on a thread-safe copy return RecursiveChildren.Where(i => i.LocationType != LocationType.Virtual).FirstOrDefault(i => { - if (i.LocationType == LocationType.Remote) - { - return string.Equals(i.Path, path, StringComparison.OrdinalIgnoreCase); - } - try { - return i.ResolveArgs.PhysicalLocations.Contains(path, StringComparer.OrdinalIgnoreCase); + return string.Equals(i.Path, path, StringComparison.OrdinalIgnoreCase) + || i.ResolveArgs.PhysicalLocations.Contains(path, StringComparer.OrdinalIgnoreCase); } catch (IOException ex) { |
