diff --git a/lib/services/download.dart b/lib/services/download.dart index f261797..8b64058 100644 --- a/lib/services/download.dart +++ b/lib/services/download.dart @@ -36,7 +36,13 @@ class DLServices { Future _init() async { tempDir = await getTemporaryDirectory(); - assetName = 'yt-dlp.exe'; + if (Platform.isWindows) { + assetName = 'yt-dlp.exe'; + } else if (Platform.isLinux) { + assetName = 'yt-dlp_linux'; + } else if (Platform.isMacOS) { + assetName = 'yt-dlp_macos'; + } await copyExecutable(); }