diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-17 17:23:48 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-05-17 17:23:48 -0400 |
| commit | ca5989cb17b324ee481b92ddf3cd1ea47af85cbe (patch) | |
| tree | 7ec185780257329779df94d7ec915c61bdc99ee8 /MediaBrowser.Server.Implementations/Dto/DtoService.cs | |
| parent | 715119b525a026f0f60c9dcaae1d4899cbc6bcda (diff) | |
fix channel query by category
Diffstat (limited to 'MediaBrowser.Server.Implementations/Dto/DtoService.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Dto/DtoService.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Dto/DtoService.cs b/MediaBrowser.Server.Implementations/Dto/DtoService.cs index bf77f1869..ceb39da03 100644 --- a/MediaBrowser.Server.Implementations/Dto/DtoService.cs +++ b/MediaBrowser.Server.Implementations/Dto/DtoService.cs @@ -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) |
