mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-05 07:18:47 +01:00
isolate .net specific methods in model project
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 == LiveTvChannelType.Radio ? MediaType.Audio : MediaType.Video,
|
||||
MediaType = info.ChannelType == ChannelType.Radio ? MediaType.Audio : MediaType.Video,
|
||||
CommunityRating = GetClientCommunityRating(info.CommunityRating),
|
||||
OfficialRating = info.OfficialRating,
|
||||
Audio = info.Audio,
|
||||
|
||||
@@ -416,7 +416,7 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
return item;
|
||||
}
|
||||
|
||||
private LiveTvProgram GetProgram(ProgramInfo info, LiveTvChannelType channelType, string serviceName, CancellationToken cancellationToken)
|
||||
private LiveTvProgram GetProgram(ProgramInfo info, ChannelType 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 == LiveTvChannelType.TV)
|
||||
if (info.ChannelType == ChannelType.TV)
|
||||
{
|
||||
item = new LiveTvVideoRecording
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user