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
refactor(telegram): update download_media to use new download_with_iter method
Tonho8fa32707ac06
diff --git a/src-tauri/src/platforms/telegram/api.rs b/src-tauri/src/platforms/telegram/api.rsindex 462a1185..0de0a6a4 100644--- a/src-tauri/src/platforms/telegram/api.rs+++ b/src-tauri/src/platforms/telegram/api.rs@@ -544,8 +544,9 @@ pub async fn download_media(tracing::info!("[tg-perf] download_media: total_size={}", total_size);}- let result = super::parallel_download::download_parallel(- &client, location, total_size, &tmp_path, progress_tx.clone(), cancel_token, 8,+ let downloadable = super::parallel_download::DownloadableLocation::new(location, total_size);+ let result = super::parallel_download::download_with_iter(+ &client, &downloadable, total_size, &tmp_path, progress_tx.clone(), cancel_token,).await;match result {