mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-31 10:37:22 -04:00 
			
		
		
		
	add platform test to directory picker
This commit is contained in:
		
							parent
							
								
									2ab60ee250
								
							
						
					
					
						commit
						7d980fee45
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user