mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
fixes #860 - Add options to display channels directly within user views
This commit is contained in:
@@ -90,12 +90,19 @@ namespace MediaBrowser.Server.Implementations.Library
|
||||
{
|
||||
var channelResult = await _channelManager.GetChannels(new ChannelQuery
|
||||
{
|
||||
Limit = 0,
|
||||
UserId = query.UserId
|
||||
|
||||
}, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (channelResult.TotalRecordCount > 0)
|
||||
var channels = channelResult.Items;
|
||||
|
||||
var embeddedChannels = channels
|
||||
.Where(i => user.Configuration.DisplayChannelsWithinViews.Contains(i.Id))
|
||||
.ToList();
|
||||
|
||||
list.AddRange(embeddedChannels.Select(i => _channelManager.GetChannel(i.Id)));
|
||||
|
||||
if (channels.Length > embeddedChannels.Count)
|
||||
{
|
||||
list.Add(await _channelManager.GetInternalChannelFolder(query.UserId, cancellationToken).ConfigureAwait(false));
|
||||
}
|
||||
|
||||
@@ -846,5 +846,7 @@
|
||||
"LabelXbmcMetadataSaveImagePathsHelp": "This is recommended if you have image file names that don't conform to Xbmc guidelines.",
|
||||
"LabelXbmcMetadataEnablePathSubstitution": "Enable path substitution",
|
||||
"LabelXbmcMetadataEnablePathSubstitutionHelp": "Enables path substitution of image paths using the server's path substitution settings.",
|
||||
"LabelXbmcMetadataEnablePathSubstitutionHelp2": "See path substitution."
|
||||
"LabelXbmcMetadataEnablePathSubstitutionHelp2": "See path substitution.",
|
||||
"LabelGroupChannelsIntoViews": "Display the following channels within my views:",
|
||||
"LabelGroupChannelsIntoViewsHelp": "If enabled, these channels will be displayed directly alongside other views. If disabled, they'll be displayed within a separate Channels view."
|
||||
}
|
||||
Reference in New Issue
Block a user