From 32b5ef7b802237db03af3bb17f21b1efc579a7cd Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 23 Mar 2016 22:59:44 -0400 Subject: [PATCH] fix channel numbers --- MediaBrowser.Model/Dto/BaseItemDto.cs | 6 ++++++ MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/MediaBrowser.Model/Dto/BaseItemDto.cs b/MediaBrowser.Model/Dto/BaseItemDto.cs index 8f617cadf..7928d0bf9 100644 --- a/MediaBrowser.Model/Dto/BaseItemDto.cs +++ b/MediaBrowser.Model/Dto/BaseItemDto.cs @@ -290,6 +290,12 @@ namespace MediaBrowser.Model.Dto /// null if [is place holder] contains no value, true if [is place holder]; otherwise, false. public bool? IsPlaceHolder { get; set; } + /// + /// Gets or sets the number. + /// + /// The number. + public string Number { get; set; } + /// /// Gets or sets the index number. /// diff --git a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs index 6c00d61f2..08b0256b2 100644 --- a/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs +++ b/MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs @@ -1845,6 +1845,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv var dto = tuple.Item1; var channel = tuple.Item2; + dto.Number = channel.Number; + dto.ChannelType = channel.ChannelType; + dto.ServiceName = GetService(channel).Name; + dto.MediaSources = channel.GetMediaSources(true).ToList(); var channelIdString = channel.Id.ToString("N");