|
|
@ -11,6 +11,7 @@ using System.Text.Json;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using Jellyfin.Data.Entities;
|
|
|
|
using Jellyfin.Data.Enums;
|
|
|
|
using Jellyfin.Data.Enums;
|
|
|
|
using Jellyfin.Extensions.Json;
|
|
|
|
using Jellyfin.Extensions.Json;
|
|
|
|
using MediaBrowser.Controller.IO;
|
|
|
|
using MediaBrowser.Controller.IO;
|
|
|
@ -95,6 +96,16 @@ namespace MediaBrowser.Controller.Entities
|
|
|
|
return GetLibraryOptions(Path);
|
|
|
|
return GetLibraryOptions(Path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override bool IsVisible(User user)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (GetLibraryOptions().Enabled)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return base.IsVisible(user);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static LibraryOptions LoadLibraryOptions(string path)
|
|
|
|
private static LibraryOptions LoadLibraryOptions(string path)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|