fix channel query by category

This commit is contained in:
Luke Pulverenti
2014-05-17 17:23:48 -04:00
parent 715119b525
commit ca5989cb17
4 changed files with 28 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
using MediaBrowser.Common.Extensions;
using MediaBrowser.Common.IO;
using MediaBrowser.Controller.Channels;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Drawing;
using MediaBrowser.Controller.Dto;
@@ -1140,6 +1141,13 @@ namespace MediaBrowser.Server.Implementations.Dto
{
dto.MediaSources = GetMediaSources(tvChannel);
}
var channelItem = item as IChannelItem;
if (channelItem != null)
{
dto.ChannelId = channelItem.ChannelId;
}
}
public List<MediaSourceInfo> GetMediaSources(BaseItem item)