diff --git a/MediaBrowser.Api/EnvironmentService.cs b/MediaBrowser.Api/EnvironmentService.cs index e137a4baf..b354cb26c 100644 --- a/MediaBrowser.Api/EnvironmentService.cs +++ b/MediaBrowser.Api/EnvironmentService.cs @@ -134,17 +134,20 @@ namespace MediaBrowser.Api { var result = new DefaultDirectoryBrowserInfo(); - try + if (Environment.OSVersion.Platform == PlatformID.Unix) { - var qnap = "/share/CACHEDEV1_DATA"; - if (Directory.Exists(qnap)) + try { - result.Path = qnap; + var qnap = "/share/CACHEDEV1_DATA"; + if (Directory.Exists(qnap)) + { + result.Path = qnap; + } + } + catch + { + } - } - catch - { - } return ToOptimizedResult(result);