|
|
@ -14,7 +14,6 @@ using Jellyfin.Data.Enums;
|
|
|
|
using Jellyfin.Extensions;
|
|
|
|
using Jellyfin.Extensions;
|
|
|
|
using Jellyfin.Extensions.Json;
|
|
|
|
using Jellyfin.Extensions.Json;
|
|
|
|
using MediaBrowser.Common.Extensions;
|
|
|
|
using MediaBrowser.Common.Extensions;
|
|
|
|
using MediaBrowser.Common.Progress;
|
|
|
|
|
|
|
|
using MediaBrowser.Controller.Channels;
|
|
|
|
using MediaBrowser.Controller.Channels;
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
|
using MediaBrowser.Controller.Dto;
|
|
|
|
using MediaBrowser.Controller.Dto;
|
|
|
@ -668,7 +667,7 @@ namespace Jellyfin.LiveTv.Channels
|
|
|
|
ChannelIds = new Guid[] { internalChannel.Id }
|
|
|
|
ChannelIds = new Guid[] { internalChannel.Id }
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var result = await GetChannelItemsInternal(query, new SimpleProgress<double>(), cancellationToken).ConfigureAwait(false);
|
|
|
|
var result = await GetChannelItemsInternal(query, new Progress<double>(), cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var item in result.Items)
|
|
|
|
foreach (var item in result.Items)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -681,7 +680,7 @@ namespace Jellyfin.LiveTv.Channels
|
|
|
|
EnableTotalRecordCount = false,
|
|
|
|
EnableTotalRecordCount = false,
|
|
|
|
ChannelIds = new Guid[] { internalChannel.Id }
|
|
|
|
ChannelIds = new Guid[] { internalChannel.Id }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
new SimpleProgress<double>(),
|
|
|
|
new Progress<double>(),
|
|
|
|
cancellationToken).ConfigureAwait(false);
|
|
|
|
cancellationToken).ConfigureAwait(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -763,7 +762,7 @@ namespace Jellyfin.LiveTv.Channels
|
|
|
|
/// <inheritdoc />
|
|
|
|
/// <inheritdoc />
|
|
|
|
public async Task<QueryResult<BaseItemDto>> GetChannelItems(InternalItemsQuery query, CancellationToken cancellationToken)
|
|
|
|
public async Task<QueryResult<BaseItemDto>> GetChannelItems(InternalItemsQuery query, CancellationToken cancellationToken)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var internalResult = await GetChannelItemsInternal(query, new SimpleProgress<double>(), cancellationToken).ConfigureAwait(false);
|
|
|
|
var internalResult = await GetChannelItemsInternal(query, new Progress<double>(), cancellationToken).ConfigureAwait(false);
|
|
|
|
|
|
|
|
|
|
|
|
var returnItems = _dtoService.GetBaseItemDtos(internalResult.Items, query.DtoOptions, query.User);
|
|
|
|
var returnItems = _dtoService.GetBaseItemDtos(internalResult.Items, query.DtoOptions, query.User);
|
|
|
|
|
|
|
|
|
|
|
|