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
fix: simplify download_from_url by removing media info retrieval and using URL as title
Tonho36078c1d6c1f
diff --git a/src-tauri/src/commands/downloads.rs b/src-tauri/src/commands/downloads.rsindex 2a75bb11..bf73aa04 100644--- a/src-tauri/src/commands/downloads.rs+++ b/src-tauri/src/commands/downloads.rs@@ -107,25 +107,10 @@ pub async fn download_from_url(.find_platform(&url).ok_or_else(|| "Nenhum downloader disponível para esta URL".to_string())?;- let info = match downloader.get_media_info(&url).await {- Ok(info) => info,- Err(e) => {- return Err(format!("Erro ao obter informações: {}", e));- }- };-- let title = info.title.clone();let platform_name = platform.map(|p| p.to_string())- .unwrap_or_else(|| info.platform.clone());- let total_bytes = info.file_size_bytes;- let file_count = if info.media_type == crate::models::media::MediaType::Carousel- || info.media_type == crate::models::media::MediaType::Playlist- {- Some(info.available_qualities.len() as u32)- } else {- Some(1)- };+ .unwrap_or_else(|| "generic".to_string());+ let title = url.clone();{let mut q = download_queue.lock().await;@@ -139,9 +124,9 @@ pub async fn download_from_url(quality,format_id,referer,- Some(info),- total_bytes,- file_count,+ None,+ None,+ None,downloader,);