update LibraryMonitor

This commit is contained in:
Luke Pulverenti 2016-11-11 02:30:03 -05:00
parent 00cbadea2c
commit f8dd02bb66
4 changed files with 5 additions and 4 deletions

View File

@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using Emby.Server.Implementations.IO;
using MediaBrowser.Controller.Configuration; using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities; using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Library; using MediaBrowser.Controller.Library;
@ -14,8 +13,9 @@ using MediaBrowser.Model.Logging;
using MediaBrowser.Model.System; using MediaBrowser.Model.System;
using MediaBrowser.Model.Tasks; using MediaBrowser.Model.Tasks;
using MediaBrowser.Model.Threading; using MediaBrowser.Model.Threading;
using Emby.Server.Implementations.IO;
namespace MediaBrowser.Server.Startup.Common.IO namespace Emby.Server.Core.IO
{ {
public class LibraryMonitor : ILibraryMonitor public class LibraryMonitor : ILibraryMonitor
{ {
@ -293,7 +293,7 @@ namespace MediaBrowser.Server.Startup.Common.IO
IncludeSubdirectories = true IncludeSubdirectories = true
}; };
if (Environment.OSVersion.Platform == PlatformID.Win32NT) if (_environmentInfo.OperatingSystem == MediaBrowser.Model.System.OperatingSystem.Windows)
{ {
newWatcher.InternalBufferSize = 32767; newWatcher.InternalBufferSize = 32767;
} }

View File

@ -40,6 +40,7 @@
"NETStandard.Library": "1.6.0", "NETStandard.Library": "1.6.0",
"System.AppDomain": "2.0.11", "System.AppDomain": "2.0.11",
"System.Globalization.Extensions": "4.0.1", "System.Globalization.Extensions": "4.0.1",
"System.IO.FileSystem.Watcher": "4.0.0",
"MediaBrowser.Model": { "MediaBrowser.Model": {
"target": "project" "target": "project"
}, },

View File

@ -92,6 +92,7 @@ using Emby.Server.Core.Configuration;
using Emby.Server.Core.Data; using Emby.Server.Core.Data;
using Emby.Server.Core.Devices; using Emby.Server.Core.Devices;
using Emby.Server.Core.FFMpeg; using Emby.Server.Core.FFMpeg;
using Emby.Server.Core.IO;
using Emby.Server.Core.Localization; using Emby.Server.Core.Localization;
using Emby.Server.Core.Migrations; using Emby.Server.Core.Migrations;
using Emby.Server.Core.Notifications; using Emby.Server.Core.Notifications;

View File

@ -115,7 +115,6 @@
<Compile Include="Cryptography\X520Attributes.cs" /> <Compile Include="Cryptography\X520Attributes.cs" />
<Compile Include="HttpServerFactory.cs" /> <Compile Include="HttpServerFactory.cs" />
<Compile Include="INativeApp.cs" /> <Compile Include="INativeApp.cs" />
<Compile Include="IO\LibraryMonitor.cs" />
<Compile Include="IO\MemoryStreamProvider.cs" /> <Compile Include="IO\MemoryStreamProvider.cs" />
<Compile Include="LiveTv\TunerHosts\SatIp\ChannelScan.cs" /> <Compile Include="LiveTv\TunerHosts\SatIp\ChannelScan.cs" />
<Compile Include="LiveTv\TunerHosts\SatIp\Rtcp\ReportBlock.cs" /> <Compile Include="LiveTv\TunerHosts\SatIp\Rtcp\ReportBlock.cs" />