diff options
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs')
| -rw-r--r-- | MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs index ba5d10eef..d6a1be962 100644 --- a/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs +++ b/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs @@ -3,6 +3,7 @@ using MediaBrowser.Common.ScheduledTasks; using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Library; +using MediaBrowser.Model.Configuration; using MediaBrowser.Model.Logging; using MediaBrowser.Server.Implementations.ScheduledTasks; using Microsoft.Win32; @@ -147,9 +148,25 @@ namespace MediaBrowser.Server.Implementations.IO Start(); } + private bool EnableLibraryMonitor + { + get + { + switch (ConfigurationManager.Configuration.EnableLibraryMonitor) + { + case AutoOnOff.Auto: + return Environment.OSVersion.Platform == PlatformID.Win32NT; + case AutoOnOff.Enabled: + return true; + default: + return false; + } + } + } + public void Start() { - if (ConfigurationManager.Configuration.EnableRealtimeMonitor) + if (EnableLibraryMonitor) { StartInternal(); } |
