mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 05:48:47 +01:00
update channels
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -287,7 +287,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
ExcludeItemTypes = excludeItemTypes,
|
||||
ExcludeLocationTypes = new[] { LocationType.Virtual },
|
||||
Limit = limit * 20,
|
||||
SourceTypes = new[] { SourceType.Library }
|
||||
ExcludeSourceTypes = parentIds.Length == 0 ? new[] { SourceType.Channel, SourceType.LiveTV } : new SourceType[] { }
|
||||
|
||||
}, parentIds);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user