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,6 +134,8 @@ namespace MediaBrowser.Api
{ {
var result = new DefaultDirectoryBrowserInfo(); var result = new DefaultDirectoryBrowserInfo();
if (Environment.OSVersion.Platform == PlatformID.Unix)
{
try try
{ {
var qnap = "/share/CACHEDEV1_DATA"; var qnap = "/share/CACHEDEV1_DATA";
@ -146,6 +148,7 @@ namespace MediaBrowser.Api
{ {
} }
}
return ToOptimizedResult(result); return ToOptimizedResult(result);
} }