aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-19 11:38:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-03-19 11:38:05 -0400
commit1d2b6329bf3d395c57ac45a0f56b2e15bbee4c22 (patch)
treed1938509e92eac1b2f8ac9f5657785a155a05d50 /MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs
parent5dd77ab145553ea81b9faa6167a426b1ddcf1e9b (diff)
update channels
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs b/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs
index b72406730..e776e58f9 100644
--- a/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs
+++ b/MediaBrowser.Server.Implementations/Library/LocalTrailerPostScanTask.cs
@@ -28,12 +28,13 @@ namespace MediaBrowser.Server.Implementations.Library
.Cast<IHasTrailers>()
.ToList();
- var channelTrailerResult = await _channelManager.GetAllMediaInternal(new AllChannelMediaQuery
+ var trailerResult = _libraryManager.GetItems(new InternalItemsQuery
{
- ExtraTypes = new[] { ExtraType.Trailer }
+ IncludeItemTypes = new[] { typeof(Trailer).Name },
+ //IsLocalTrailer = false
- }, CancellationToken.None);
- var channelTrailers = channelTrailerResult.Items;
+ });
+ var trailers = trailerResult.Items;
var numComplete = 0;
@@ -41,7 +42,7 @@ namespace MediaBrowser.Server.Implementations.Library
{
cancellationToken.ThrowIfCancellationRequested();
- await AssignTrailers(item, channelTrailers).ConfigureAwait(false);
+ await AssignTrailers(item, trailers).ConfigureAwait(false);
numComplete++;
double percent = numComplete;