display current program in tv channel osd

This commit is contained in:
Luke Pulverenti
2015-08-31 00:57:12 -04:00
parent 42712d42aa
commit 8e8ce40de2
4 changed files with 50 additions and 9 deletions

View File

@@ -98,7 +98,7 @@ namespace MediaBrowser.Server.Implementations.Dto
var byName = item as IItemByName;
if (byName != null && !(item is LiveTvChannel))
if (byName != null)
{
if (options.Fields.Contains(ItemFields.ItemCounts))
{
@@ -140,7 +140,7 @@ namespace MediaBrowser.Server.Implementations.Dto
var byName = item as IItemByName;
if (byName != null && !(item is LiveTvChannel))
if (byName != null)
{
if (options.Fields.Contains(ItemFields.ItemCounts))
{
@@ -351,6 +351,12 @@ namespace MediaBrowser.Server.Implementations.Dto
AttachBasicFields(dto, item, owner, options);
var tvChannel = item as LiveTvChannel;
if (tvChannel != null)
{
_livetvManager().AddChannelInfo(dto, tvChannel, options, user);
}
var collectionFolder = item as ICollectionFolder;
if (collectionFolder != null)
{
@@ -1520,12 +1526,6 @@ namespace MediaBrowser.Server.Implementations.Dto
SetPhotoProperties(dto, photo);
}
var tvChannel = item as LiveTvChannel;
if (tvChannel != null)
{
dto.MediaSources = _mediaSourceManager().GetStaticMediaSources(tvChannel, true).ToList();
}
dto.ChannelId = item.ChannelId;
var channelItem = item as IChannelItem;