Skip to content

Commit

Permalink
Don't use AppDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed Aug 18, 2024
1 parent 6427bd2 commit 8ca92bb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions YoutubeExplode.Converter/FFmpeg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ internal partial class FFmpeg
public static string GetFilePath() =>
// Try to find FFmpeg in the probe directory
Directory
.EnumerateFiles(
AppDomain.CurrentDomain.BaseDirectory ?? Directory.GetCurrentDirectory()
)
.EnumerateFiles(AppContext.BaseDirectory ?? Directory.GetCurrentDirectory())
.FirstOrDefault(f =>
string.Equals(
Path.GetFileNameWithoutExtension(f),
Expand Down

0 comments on commit 8ca92bb

Please sign in to comment.