From df1576c0393747cf84a4a4d3f4a93a8c032f5105 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 17 Dec 2013 01:08:06 -0500 Subject: [PATCH] live tv updates --- MediaBrowser.Controller/LiveTv/TimerInfo.cs | 6 ++++++ MediaBrowser.Model/LiveTv/ProgramInfoDto.cs | 1 - MediaBrowser.Model/LiveTv/TimerInfoDto.cs | 6 ++++++ .../LiveTv/LiveTvDtoService.cs | 6 ++++-- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Controller/LiveTv/TimerInfo.cs b/MediaBrowser.Controller/LiveTv/TimerInfo.cs index 786858e09..d5928959b 100644 --- a/MediaBrowser.Controller/LiveTv/TimerInfo.cs +++ b/MediaBrowser.Controller/LiveTv/TimerInfo.cs @@ -81,5 +81,11 @@ namespace MediaBrowser.Controller.LiveTv /// /// The required post padding seconds. public int RequiredPostPaddingSeconds { get; set; } + + /// + /// Gets or sets the priority. + /// + /// The priority. + public int Priority { get; set; } } } diff --git a/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs b/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs index 106b78550..4febb2961 100644 --- a/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs +++ b/MediaBrowser.Model/LiveTv/ProgramInfoDto.cs @@ -122,7 +122,6 @@ namespace MediaBrowser.Model.LiveTv public enum ProgramAudio { - Unspecified, Mono, Stereo, Dolby, diff --git a/MediaBrowser.Model/LiveTv/TimerInfoDto.cs b/MediaBrowser.Model/LiveTv/TimerInfoDto.cs index b19099c4c..f6db58c05 100644 --- a/MediaBrowser.Model/LiveTv/TimerInfoDto.cs +++ b/MediaBrowser.Model/LiveTv/TimerInfoDto.cs @@ -116,5 +116,11 @@ namespace MediaBrowser.Model.LiveTv /// /// The duration ms. public int DurationMs { get; set; } + + /// + /// Gets or sets the priority. + /// + /// The priority. + public int Priority { get; set; } } } diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs index a30d1cfbb..ab9833662 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvDtoService.cs @@ -48,7 +48,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv ExternalChannelId = info.ChannelId, ExternalSeriesTimerId = info.SeriesTimerId, ServiceName = service.Name, - ExternalProgramId = info.ProgramId + ExternalProgramId = info.ProgramId, + Priority = info.Priority }; var duration = info.EndDate - info.StartDate; @@ -308,7 +309,8 @@ namespace MediaBrowser.Server.Implementations.LiveTv RequestedPrePaddingSeconds = dto.RequestedPrePaddingSeconds, RequiredPostPaddingSeconds = dto.RequiredPostPaddingSeconds, RequiredPrePaddingSeconds = dto.RequiredPrePaddingSeconds, - ProgramId = dto.ExternalProgramId + ProgramId = dto.ExternalProgramId, + Priority = dto.Priority }; }