diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-19 14:03:21 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-04-19 14:03:21 -0400 |
| commit | 6c1bfe661bf2d0c2e988793bd760148d57014bb4 (patch) | |
| tree | 613f74f31faa75a94fc75a9dfa4364150f48956b /MediaBrowser.Controller/Entities | |
| parent | 5bcb7fe67fee478abacd795071959224931dcdbd (diff) | |
tighter control of shortcuts
Diffstat (limited to 'MediaBrowser.Controller/Entities')
| -rw-r--r-- | MediaBrowser.Controller/Entities/BaseItem.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index a2d045a5f..f7963c6e6 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -338,10 +338,12 @@ namespace MediaBrowser.Controller.Entities if (args.IsDirectory) { + var isPhysicalRoot = args.IsPhysicalRoot; + // When resolving the root, we need it's grandchildren (children of user views) - var flattenFolderDepth = args.IsPhysicalRoot ? 2 : 0; + var flattenFolderDepth = isPhysicalRoot ? 2 : 0; - args.FileSystemDictionary = FileData.GetFilteredFileSystemEntries(args.Path, Logger, flattenFolderDepth: flattenFolderDepth, args: args); + args.FileSystemDictionary = FileData.GetFilteredFileSystemEntries(args.Path, Logger, flattenFolderDepth: flattenFolderDepth, args: args, resolveShortcuts: isPhysicalRoot || args.IsVf); } //update our dates |
