From af47c9ae9446add1f6956f770587e66c03fc7c9c Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 17 Oct 2025 10:34:49 +0200 Subject: [PATCH] Throw exception if binary folder not specified --- .../Services/FFbinariesService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs b/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs index 479d264..9e46db3 100644 --- a/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs +++ b/FFMpegCore.Extensions.Downloader/Services/FFbinariesService.cs @@ -55,6 +55,11 @@ internal class FFbinariesService /// internal static IEnumerable ExtractZipAndSave(Stream zipStream) { + if (string.IsNullOrEmpty(GlobalFFOptions.Current.BinaryFolder)) + { + throw new FFMpegDownloaderException("Binary folder not specified"); + } + using var archive = new ZipArchive(zipStream, ZipArchiveMode.Read); List files = new(); foreach (var entry in archive.Entries)