diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-27 08:24:28 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-09-27 08:24:28 -0400 |
| commit | c643dd072e117aec2397e695c650e8a58be2fc6c (patch) | |
| tree | ea1701ef7408fb30c816d6495ba85c200f4bacdb /MediaBrowser.Server.Implementations/Dto | |
| parent | bdc90f02f2aea7fabc22413912752db56435bfd3 (diff) | |
added more direct querying to folder
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Dto/DtoService.cs | 3 |
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) |
