Rename Latest enum member

This commit is contained in:
Malte Rosenbjerg 2025-10-17 15:08:00 +02:00
parent 3404d63655
commit 1a49b4eec3
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ namespace FFMpegCore.Extensions.Downloader.Enums;
public enum FFMpegVersions : ushort public enum FFMpegVersions : ushort
{ {
[Description("https://ffbinaries.com/api/v1/version/latest")] [Description("https://ffbinaries.com/api/v1/version/latest")]
Latest, LatestAvailable,
[Description("https://ffbinaries.com/api/v1/version/6.1")] [Description("https://ffbinaries.com/api/v1/version/6.1")]
V6_1, V6_1,

View file

@ -17,8 +17,8 @@ public static class FFMpegDownloader
/// <param name="options">used for specifying binary folder to download binaries into. If not provided, GlobalFFOptions are used</param> /// <param name="options">used for specifying binary folder to download binaries into. If not provided, GlobalFFOptions are used</param>
/// <param name="platformOverride">used to explicitly state the os and architecture you want to download</param> /// <param name="platformOverride">used to explicitly state the os and architecture you want to download</param>
/// <returns>a list of the binaries that have been successfully downloaded</returns> /// <returns>a list of the binaries that have been successfully downloaded</returns>
FFMpegVersions version = FFMpegVersions.Latest,
public static async Task<List<string>> DownloadBinaries( public static async Task<List<string>> DownloadBinaries(
FFMpegVersions version = FFMpegVersions.LatestAvailable,
FFMpegBinaries binaries = FFMpegBinaries.FFMpeg | FFMpegBinaries.FFProbe, FFMpegBinaries binaries = FFMpegBinaries.FFMpeg | FFMpegBinaries.FFProbe,
FFOptions? options = null, FFOptions? options = null,
SupportedPlatforms? platformOverride = null) SupportedPlatforms? platformOverride = null)