diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-20 02:46:51 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-03-20 02:46:51 -0400 |
| commit | 4b7093e923b457f34f717f286ebb08514cfb9067 (patch) | |
| tree | 9d198870978c289b9b2581638a470562b7e8c8a3 /MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs | |
| parent | 9b1cad3ce05fe68b01750962b29bf5529050dd67 (diff) | |
get recursive items from db
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs b/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs index 10263f7d7..4e23b5e93 100644 --- a/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs +++ b/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs @@ -4,6 +4,7 @@ using MediaBrowser.Controller.Library; using MediaBrowser.Model.Channels; using MediaBrowser.Model.Entities; using System; +using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -28,16 +29,14 @@ namespace MediaBrowser.Server.Implementations.Library .Cast<IHasTrailers>() .ToList(); - var trailerResult = _libraryManager.GetItems(new InternalItemsQuery + var trailers = _libraryManager.GetItemList(new InternalItemsQuery { IncludeItemTypes = new[] { typeof(Trailer).Name }, ExcludeTrailerTypes = new[] { TrailerType.LocalTrailer } - - }); - var trailers = trailerResult.Items; + }).ToArray(); var numComplete = 0; |
