fix channel numbers

This commit is contained in:
Luke Pulverenti 2016-03-23 22:59:44 -04:00
parent 658c13b8e6
commit 32b5ef7b80
2 changed files with 10 additions and 0 deletions

View File

@ -290,6 +290,12 @@ namespace MediaBrowser.Model.Dto
/// <value><c>null</c> if [is place holder] contains no value, <c>true</c> if [is place holder]; otherwise, <c>false</c>.</value> /// <value><c>null</c> if [is place holder] contains no value, <c>true</c> if [is place holder]; otherwise, <c>false</c>.</value>
public bool? IsPlaceHolder { get; set; } public bool? IsPlaceHolder { get; set; }
/// <summary>
/// Gets or sets the number.
/// </summary>
/// <value>The number.</value>
public string Number { get; set; }
/// <summary> /// <summary>
/// Gets or sets the index number. /// Gets or sets the index number.
/// </summary> /// </summary>

View File

@ -1845,6 +1845,10 @@ namespace MediaBrowser.Server.Implementations.LiveTv
var dto = tuple.Item1; var dto = tuple.Item1;
var channel = tuple.Item2; var channel = tuple.Item2;
dto.Number = channel.Number;
dto.ChannelType = channel.ChannelType;
dto.ServiceName = GetService(channel).Name;
dto.MediaSources = channel.GetMediaSources(true).ToList(); dto.MediaSources = channel.GetMediaSources(true).ToList();
var channelIdString = channel.Id.ToString("N"); var channelIdString = channel.Id.ToString("N");