aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs
diff options
context:
space:
mode:
authorTavares André <tavares_and@hotmail.com>2015-06-30 20:26:42 +0200
committerTavares André <tavares_and@hotmail.com>2015-06-30 20:26:42 +0200
commit27d6135493c778bddee6ad6e044ed167c6449d7d (patch)
tree4cf323758d3e9caf115c9627f8e6da7dd78c543f /MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs
parent1e07dbec63bced51857e67b00941b91ca86a7f77 (diff)
parent86571a629764be30e6d2e671db9e87c42a72a7f4 (diff)
Merge branch 'dev' of https://github.com/MediaBrowser/MediaBrowser into dev
Diffstat (limited to 'MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs')
-rw-r--r--MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs19
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();
}