aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Dto
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-27 08:24:28 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-27 08:24:28 -0400
commitc643dd072e117aec2397e695c650e8a58be2fc6c (patch)
treeea1701ef7408fb30c816d6495ba85c200f4bacdb /MediaBrowser.Server.Implementations/Dto
parentbdc90f02f2aea7fabc22413912752db56435bfd3 (diff)
added more direct querying to folder
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto')
-rw-r--r--MediaBrowser.Server.Implementations/Dto/DtoService.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
index 740f5fbbc..b3cdf43be 100644
--- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs
+++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs
@@ -354,8 +354,7 @@ namespace MediaBrowser.Server.Implementations.Dto
if (!string.IsNullOrEmpty(item.Album))
{
var parentAlbum = _libraryManager.RootFolder
- .RecursiveChildren
- .OfType<MusicAlbum>()
+ .GetRecursiveChildren(i => i is MusicAlbum)
.FirstOrDefault(i => string.Equals(i.Name, item.Album, StringComparison.OrdinalIgnoreCase));
if (parentAlbum != null)