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: add concurrent fragments field to HotmartDownloader struct and update download methods
Tonho2511c101bc87
diff --git a/src-tauri/src/platforms/hotmart/downloader.rs b/src-tauri/src/platforms/hotmart/downloader.rsindex 16e34976..69a5ea13 100644--- a/src-tauri/src/platforms/hotmart/downloader.rs+++ b/src-tauri/src/platforms/hotmart/downloader.rs@@ -92,6 +92,7 @@ pub struct HotmartDownloader {download_settings: DownloadSettings,max_concurrent_segments: u32,max_retries: u32,+ concurrent_fragments: u32,}impl HotmartDownloader {@@ -100,12 +101,14 @@ impl HotmartDownloader {download_settings: DownloadSettings,max_concurrent_segments: u32,max_retries: u32,+ concurrent_fragments: u32,) -> Self {Self {session,download_settings,max_concurrent_segments,max_retries,+ concurrent_fragments,}}@@ -254,6 +257,7 @@ impl HotmartDownloader {Some(referer),cancel_token.clone(),None,+ self.concurrent_fragments,).await {Ok(result) => {let _ = bytes_tx.send(result.file_size_bytes);@@ -329,6 +333,7 @@ impl HotmartDownloader {None,cancel_token.clone(),None,+ self.concurrent_fragments,).await {Ok(result) => {let _ = bytes_tx.send(result.file_size_bytes);