mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
add error handling
This commit is contained in:
parent
2561b29cba
commit
c27bc3de13
@ -203,13 +203,6 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
|
|||||||
_logger.ErrorException("Error downloading {0}", ex, url);
|
_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)
|
private void ExtractFFMpeg(FFMpegInstallInfo downloadinfo, string tempFile, string targetFolder)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user