Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: add command to check if yt-dlp is available

Tonhof3e4da9de43d
diff --git a/src-tauri/src/commands/dependencies.rs b/src-tauri/src/commands/dependencies.rs
index d591c494..e4b7dc72 100644
--- a/src-tauri/src/commands/dependencies.rs
+++ b/src-tauri/src/commands/dependencies.rs
@@ -30,6 +30,11 @@ pub async fn check_dependencies() -> Result<Vec<DependencyStatus>, String> {
])
}
+#[tauri::command]
+pub async fn check_ytdlp_available() -> Result<bool, String> {
+ Ok(crate::core::ytdlp::find_ytdlp().await.is_some())
+}
+
#[tauri::command]
pub async fn install_dependency(name: String) -> Result<String, String> {
match name.as_str() {