diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-03 14:13:53 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-10-03 14:13:53 -0400 |
| commit | 0ee844dd46f98a009c656afb3ca8618902a725d8 (patch) | |
| tree | 00c46f351256c074c249d64078a2f6c276a6f3a0 /MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs | |
| parent | 63b218be44656a7ff81b22441941611178d26847 (diff) | |
hide library monitor from certain operating systems
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs index cb9d5a09f..1f545916a 100644 --- a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs +++ b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs @@ -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: |
