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: add referer parameter to download_from_url function

Tonho604100ad1df1
diff --git a/src-tauri/src/commands/downloads.rs b/src-tauri/src/commands/downloads.rs
index c84097ea..e088f497 100644
--- a/src-tauri/src/commands/downloads.rs
+++ b/src-tauri/src/commands/downloads.rs
@@ -77,6 +77,7 @@ pub async fn download_from_url(
download_mode: Option<String>,
quality: Option<String>,
format_id: Option<String>,
+ referer: Option<String>,
) -> Result<DownloadStarted, String> {
let platform = Platform::from_url(&url)
.ok_or_else(|| "Plataforma não reconhecida".to_string())?;
@@ -131,6 +132,7 @@ pub async fn download_from_url(
download_mode,
quality,
format_id,
+ referer,
Some(info),
total_bytes,
file_count,