Merge pull request #1977 from MediaBrowser/dev
add platform test to directory picker
This commit is contained in:
commit
7d5b0123b9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user