mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-17 23:56:44 +00:00
rename channel query objects
This commit is contained in:
@@ -206,7 +206,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
IsRepeat = info.IsRepeat,
|
||||
EpisodeTitle = info.EpisodeTitle,
|
||||
ChannelType = info.ChannelType,
|
||||
MediaType = info.ChannelType == ChannelType.Radio ? MediaType.Audio : MediaType.Video,
|
||||
MediaType = info.ChannelType == LiveTvChannelType.Radio ? MediaType.Audio : MediaType.Video,
|
||||
CommunityRating = GetClientCommunityRating(info.CommunityRating),
|
||||
OfficialRating = info.OfficialRating,
|
||||
Audio = info.Audio,
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
_taskManager.CancelIfRunningAndQueue<RefreshChannelsScheduledTask>();
|
||||
}
|
||||
|
||||
public async Task<QueryResult<ChannelInfoDto>> GetChannels(ChannelQuery query, CancellationToken cancellationToken)
|
||||
public async Task<QueryResult<ChannelInfoDto>> GetChannels(LiveTvChannelQuery query, CancellationToken cancellationToken)
|
||||
{
|
||||
var user = string.IsNullOrEmpty(query.UserId) ? null : _userManager.GetUserById(new Guid(query.UserId));
|
||||
|
||||
@@ -416,7 +416,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
return item;
|
||||
}
|
||||
|
||||
private LiveTvProgram GetProgram(ProgramInfo info, ChannelType channelType, string serviceName, CancellationToken cancellationToken)
|
||||
private LiveTvProgram GetProgram(ProgramInfo info, LiveTvChannelType channelType, string serviceName, CancellationToken cancellationToken)
|
||||
{
|
||||
var id = _tvDtoService.GetInternalProgramId(serviceName, info.Id);
|
||||
|
||||
@@ -475,7 +475,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
|
||||
if (item == null)
|
||||
{
|
||||
if (info.ChannelType == ChannelType.TV)
|
||||
if (info.ChannelType == LiveTvChannelType.TV)
|
||||
{
|
||||
item = new LiveTvVideoRecording
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user