mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
fix channel query by category
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user