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: add cancel token support to HotmartDownloader's download methods
Tonho8f947d20dbed
diff --git a/src-tauri/src/platforms/hotmart/downloader.rs b/src-tauri/src/platforms/hotmart/downloader.rsindex b8cb4ecf..e6fba832 100644--- a/src-tauri/src/platforms/hotmart/downloader.rs+++ b/src-tauri/src/platforms/hotmart/downloader.rs@@ -252,6 +252,7 @@ impl HotmartDownloader {None,None,Some(referer),+ cancel_token.clone(),).await {Ok(result) => {let _ = bytes_tx.send(result.file_size_bytes);@@ -325,6 +326,7 @@ impl HotmartDownloader {None,None,None,+ cancel_token.clone(),).await {Ok(result) => {let _ = bytes_tx.send(result.file_size_bytes);