mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix music artists not showing in collections
This commit is contained in:
parent
44a270fa6f
commit
7cd1416d27
@ -9,7 +9,7 @@ using MediaBrowser.Model.Tasks;
|
|||||||
|
|
||||||
namespace Emby.Server.Implementations.Channels
|
namespace Emby.Server.Implementations.Channels
|
||||||
{
|
{
|
||||||
class RefreshChannelsScheduledTask : IScheduledTask
|
class RefreshChannelsScheduledTask : IScheduledTask, IConfigurableScheduledTask
|
||||||
{
|
{
|
||||||
private readonly IChannelManager _channelManager;
|
private readonly IChannelManager _channelManager;
|
||||||
private readonly IUserManager _userManager;
|
private readonly IUserManager _userManager;
|
||||||
@ -39,6 +39,21 @@ namespace Emby.Server.Implementations.Channels
|
|||||||
get { return "Internet Channels"; }
|
get { return "Internet Channels"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool IsHidden
|
||||||
|
{
|
||||||
|
get { return ((ChannelManager)_channelManager).Channels.Length == 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsEnabled
|
||||||
|
{
|
||||||
|
get { return true; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool IsLogged
|
||||||
|
{
|
||||||
|
get { return true; }
|
||||||
|
}
|
||||||
|
|
||||||
public async Task Execute(System.Threading.CancellationToken cancellationToken, IProgress<double> progress)
|
public async Task Execute(System.Threading.CancellationToken cancellationToken, IProgress<double> progress)
|
||||||
{
|
{
|
||||||
var manager = (ChannelManager)_channelManager;
|
var manager = (ChannelManager)_channelManager;
|
||||||
@ -65,15 +80,5 @@ namespace Emby.Server.Implementations.Channels
|
|||||||
{
|
{
|
||||||
get { return "RefreshInternetChannels"; }
|
get { return "RefreshInternetChannels"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsHidden
|
|
||||||
{
|
|
||||||
get { return false; }
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsEnabled
|
|
||||||
{
|
|
||||||
get { return true; }
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -653,6 +653,14 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|||||||
// Schedules direct requires that the client support compression and will return a 400 response without it
|
// Schedules direct requires that the client support compression and will return a 400 response without it
|
||||||
options.EnableHttpCompression = true;
|
options.EnableHttpCompression = true;
|
||||||
|
|
||||||
|
// On windows 7 under .net core, this header is not getting added
|
||||||
|
#if NETSTANDARD2_0
|
||||||
|
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||||
|
{
|
||||||
|
options.RequestHeaders["Accept-Encoding"] = "deflate";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return await _httpClient.Post(options).ConfigureAwait(false);
|
return await _httpClient.Post(options).ConfigureAwait(false);
|
||||||
@ -684,6 +692,14 @@ namespace Emby.Server.Implementations.LiveTv.Listings
|
|||||||
// Schedules direct requires that the client support compression and will return a 400 response without it
|
// Schedules direct requires that the client support compression and will return a 400 response without it
|
||||||
options.EnableHttpCompression = true;
|
options.EnableHttpCompression = true;
|
||||||
|
|
||||||
|
// On windows 7 under .net core, this header is not getting added
|
||||||
|
#if NETSTANDARD2_0
|
||||||
|
if (Environment.OSVersion.Platform == PlatformID.Win32NT)
|
||||||
|
{
|
||||||
|
options.RequestHeaders["Accept-Encoding"] = "deflate";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
return await _httpClient.SendAsync(options, "GET").ConfigureAwait(false);
|
return await _httpClient.SendAsync(options, "GET").ConfigureAwait(false);
|
||||||
|
@ -1266,7 +1266,7 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
|
|
||||||
var childOwner = child.IsOwnedItem ? (child.GetOwner() ?? child) : child;
|
var childOwner = child.IsOwnedItem ? (child.GetOwner() ?? child) : child;
|
||||||
|
|
||||||
if (childOwner != null)
|
if (childOwner != null && !(child is IItemByName))
|
||||||
{
|
{
|
||||||
var childLocationType = childOwner.LocationType;
|
var childLocationType = childOwner.LocationType;
|
||||||
if (childLocationType == LocationType.Remote || childLocationType == LocationType.Virtual)
|
if (childLocationType == LocationType.Remote || childLocationType == LocationType.Virtual)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user