Merge pull request #1977 from MediaBrowser/dev

add platform test to directory picker
This commit is contained in:
Luke 2016-07-23 16:06:04 -04:00 committed by GitHub
commit 7d5b0123b9

View File

@ -134,17 +134,20 @@ namespace MediaBrowser.Api
{ {
var result = new DefaultDirectoryBrowserInfo(); var result = new DefaultDirectoryBrowserInfo();
try if (Environment.OSVersion.Platform == PlatformID.Unix)
{ {
var qnap = "/share/CACHEDEV1_DATA"; try
if (Directory.Exists(qnap))
{ {
result.Path = qnap; var qnap = "/share/CACHEDEV1_DATA";
if (Directory.Exists(qnap))
{
result.Path = qnap;
}
} }
} catch
catch {
{
}
} }
return ToOptimizedResult(result); return ToOptimizedResult(result);