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.

fix: Windows file reveal with spaces and remove redundant torrent name sanitization

InstaZDLL791639980c30
diff --git a/src-tauri/src/commands/downloads.rs b/src-tauri/src/commands/downloads.rs
index 7668f014..b1523dbd 100644
--- a/src-tauri/src/commands/downloads.rs
+++ b/src-tauri/src/commands/downloads.rs
@@ -421,8 +421,9 @@ pub async fn clear_finished_downloads(
pub async fn reveal_file(path: String) -> Result<(), String> {
#[cfg(target_os = "windows")]
{
+ use std::os::windows::process::CommandExt;
std::process::Command::new("explorer")
- .args(["/select,", &path])
+ .raw_arg(format!("/select,\"{}\"", path))
.spawn()
.map_err(|e| e.to_string())?;
}
diff --git a/src-tauri/src/platforms/magnet/mod.rs b/src-tauri/src/platforms/magnet/mod.rs
index 5022cb78..472304a6 100644
--- a/src-tauri/src/platforms/magnet/mod.rs
+++ b/src-tauri/src/platforms/magnet/mod.rs
@@ -181,7 +181,7 @@ impl PlatformDownloader for MagnetDownloader {
let file_path = if torrent_name.is_empty() {
output_dir.clone()
} else {
- output_dir.join(sanitize_filename::sanitize(&torrent_name))
+ output_dir.join(&torrent_name)
};
Ok(DownloadResult {