hide library monitor from certain operating systems

This commit is contained in:
Luke Pulverenti
2015-10-03 14:13:53 -04:00
parent 63b218be44
commit 0ee844dd46
7 changed files with 39 additions and 5 deletions

View File

@@ -15,6 +15,7 @@ using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Controller;
namespace MediaBrowser.Server.Implementations.IO
{
@@ -113,6 +114,7 @@ namespace MediaBrowser.Server.Implementations.IO
private IServerConfigurationManager ConfigurationManager { get; set; }
private readonly IFileSystem _fileSystem;
private IServerApplicationHost _appHost;
/// <summary>
/// Initializes a new instance of the <see cref="LibraryMonitor" /> class.
@@ -153,6 +155,11 @@ namespace MediaBrowser.Server.Implementations.IO
{
get
{
if (!_appHost.SupportsLibraryMonitor)
{
return false;
}
switch (ConfigurationManager.Configuration.EnableLibraryMonitor)
{
case AutoOnOff.Auto: