瀏覽代碼

add error handling

Luke Pulverenti 9 年之前
父節點
當前提交
c27bc3de13
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegLoader.cs

+ 0 - 7
MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegLoader.cs

@@ -203,13 +203,6 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
                     _logger.ErrorException("Error downloading {0}", ex, url);
                 }
             }
-
-            if (downloadinfo.DownloadUrls.Length == 0)
-            {
-                throw new ApplicationException("ffmpeg unvailable. Please install it and start the server with two command line arguments: -ffmpeg \"{PATH}\" and -ffprobe \"{PATH}\"");
-            }
-
-            throw new ApplicationException("Unable to download required components. Please try again later.");
         }
 
         private void ExtractFFMpeg(FFMpegInstallInfo downloadinfo, string tempFile, string targetFolder)