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: remove redundant comments for concurrent processing in HotmartDownloader
Tonho595783571aec
diff --git a/src-tauri/src/platforms/hotmart/downloader.rs b/src-tauri/src/platforms/hotmart/downloader.rsindex 5d67c510..fa304dd7 100644--- a/src-tauri/src/platforms/hotmart/downloader.rs+++ b/src-tauri/src/platforms/hotmart/downloader.rs@@ -141,7 +141,6 @@ impl HotmartDownloader {tokio::fs::create_dir_all(output_dir).await?;- // Process medias concurrentlyif lesson.has_media {let media_futures: Vec<_> = lesson.medias.iter().enumerate().map(|(i, media)| {let media = media.clone();@@ -259,7 +258,6 @@ impl HotmartDownloader {}}- // Process HTML-embedded players concurrentlyif let Some(html) = &lesson.content {let players = parser::detect_players_from_html(html);let player_futures: Vec<_> = players.into_iter().enumerate().map(|(i, player)| {@@ -412,7 +410,6 @@ impl HotmartDownloader {anyhow::bail!("Download cancelado pelo usuário");}- // Download attachments concurrentlyif self.download_settings.download_attachments && !lesson.attachments.is_empty() {let mat_dir = format!("{}/Materiais", output_dir);tokio::fs::create_dir_all(&mat_dir).await?;@@ -531,7 +528,6 @@ impl HotmartDownloader {let referer = format!("https://{}.club.hotmart.com/", slug);let slug_owned = slug.to_string();- // Flatten all pages with module context for concurrent processingstruct PageTask {module_index: usize,module_name: String,@@ -557,7 +553,6 @@ impl HotmartDownloader {}}- // Process lessons concurrently with a bounded limitstream::iter(all_pages).for_each_concurrent(CONCURRENT_LESSONS, |task| {let downloader = self.clone();