소스 검색

update library monitor

Luke Pulverenti 9 년 전
부모
커밋
2fdafcaee6
2개의 변경된 파일1개의 추가작업 그리고 11개의 파일을 삭제
  1. 1 6
      MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs
  2. 0 5
      MediaBrowser.Server.Mono/Native/BaseMonoApp.cs

+ 1 - 6
MediaBrowser.Server.Implementations/IO/LibraryMonitor.cs

@@ -157,15 +157,10 @@ namespace MediaBrowser.Server.Implementations.IO
         {
             get
             {
-                if (!_appHost.SupportsLibraryMonitor)
-                {
-                    return false;
-                }
-
                 switch (ConfigurationManager.Configuration.EnableLibraryMonitor)
                 {
                     case AutoOnOff.Auto:
-                        return Environment.OSVersion.Platform == PlatformID.Win32NT;
+                        return _appHost.SupportsLibraryMonitor;
                     case AutoOnOff.Enabled:
                         return true;
                     default:

+ 0 - 5
MediaBrowser.Server.Mono/Native/BaseMonoApp.cs

@@ -119,11 +119,6 @@ namespace MediaBrowser.Server.Mono.Native
         {
             get
             {
-                if (StartupOptions.ContainsOption("-allowrealtimemonitor"))
-                {
-                    return true;    
-                }
-
                 return false;
             }
         }