Skip to content

Commit

Permalink
fix channel numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Mar 24, 2016
1 parent b09d494 commit 45e7fcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MediaBrowser.Model/Dto/BaseItemDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,12 @@ public class BaseItemDto : IHasProviderIds, IHasPropertyChangedEvent, IItemDto,
/// <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; }

/// <summary>
/// Gets or sets the number.
/// </summary>
/// <value>The number.</value>
public string Number { get; set; }

/// <summary>
/// Gets or sets the index number.
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions MediaBrowser.Server.Implementations/LiveTv/LiveTvManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1845,6 +1845,10 @@ public void AddChannelInfo(List<Tuple<BaseItemDto, LiveTvChannel>> tuples, DtoOp
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");
Expand Down

0 comments on commit 45e7fcf

Please sign in to comment.