fix channel numbers

pull/702/head
Luke Pulverenti 9 years ago
parent 658c13b8e6
commit 32b5ef7b80

@ -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>

@ -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");

Loading…
Cancel
Save