commit
5bdc96bb6a
|
@ -33,6 +33,7 @@ using System.Net;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CommonIO;
|
using CommonIO;
|
||||||
|
using MediaBrowser.Model.Channels;
|
||||||
using MediaBrowser.Model.Dto;
|
using MediaBrowser.Model.Dto;
|
||||||
using MediaBrowser.Model.Extensions;
|
using MediaBrowser.Model.Extensions;
|
||||||
using MediaBrowser.Model.Library;
|
using MediaBrowser.Model.Library;
|
||||||
|
@ -1512,8 +1513,13 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||||
}
|
}
|
||||||
if (string.Equals(view.ViewType, CollectionType.Channels))
|
if (string.Equals(view.ViewType, CollectionType.Channels))
|
||||||
{
|
{
|
||||||
// TODO: Return channels
|
var channelResult = BaseItem.ChannelManager.GetChannelsInternal(new ChannelQuery
|
||||||
return new[] { view };
|
{
|
||||||
|
UserId = user.Id.ToString("N")
|
||||||
|
|
||||||
|
}, CancellationToken.None).Result;
|
||||||
|
|
||||||
|
return channelResult.Items;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Translate view into folders
|
// Translate view into folders
|
||||||
|
|
Loading…
Reference in New Issue
Block a user