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