Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat(cookies): add check_cookie_error command to handle cookie errors
Tonho54faca025a86
diff --git a/src-tauri/src/commands/downloads.rs b/src-tauri/src/commands/downloads.rsindex 52e4259b..050abfc0 100644--- a/src-tauri/src/commands/downloads.rs+++ b/src-tauri/src/commands/downloads.rs@@ -33,6 +33,15 @@ pub struct PlatformInfo {pub content_type: Option<String>,}+#[tauri::command]+pub fn check_cookie_error() -> bool {+ let has_error = crate::core::ytdlp::has_cookie_error();+ if has_error {+ crate::core::ytdlp::clear_cookie_error();+ }+ has_error+}+#[tauri::command]pub async fn detect_platform(url: String) -> Result<PlatformInfo, String> {let _timer_start = std::time::Instant::now();