Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

feat: update download method in HotmartDownloader to enforce specific download handling

Tonho36549885fd26
diff --git a/src-tauri/src/platforms/hotmart/downloader.rs b/src-tauri/src/platforms/hotmart/downloader.rs
index 0ad11b46..8c5fe4ba 100644
--- a/src-tauri/src/platforms/hotmart/downloader.rs
+++ b/src-tauri/src/platforms/hotmart/downloader.rs
@@ -643,15 +643,9 @@ impl PlatformDownloader for HotmartDownloader {
async fn download(
&self,
_info: &MediaInfo,
- opts: &DownloadOptions,
- progress: mpsc::Sender<f64>,
+ _opts: &DownloadOptions,
+ _progress: mpsc::Sender<f64>,
) -> anyhow::Result<DownloadResult> {
- let output = opts.output_dir.join("hotmart_download.mp4");
- let _ = progress.send(100.0).await;
- Ok(DownloadResult {
- file_path: output,
- file_size_bytes: 0,
- duration_seconds: 0.0,
- })
+ Err(anyhow!("Hotmart downloads use start_course_download, not the generic download trait"))
}
}