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: route .torrent URLs to magnet downloader via Platform::from_url

InstaZDLL0a6cefa8575c
diff --git a/src-tauri/omniget-core/src/platforms/mod.rs b/src-tauri/omniget-core/src/platforms/mod.rs
index 2e363c87..45cd15f1 100644
--- a/src-tauri/omniget-core/src/platforms/mod.rs
+++ b/src-tauri/omniget-core/src/platforms/mod.rs
@@ -68,7 +68,8 @@ impl FromStr for Platform {
impl Platform {
pub fn from_url(url_str: &str) -> Option<Self> {
// Magnet links have no hostname, detect by scheme prefix
- if url_str.starts_with("magnet:") {
+ // .torrent URLs are also handled by the magnet downloader
+ if url_str.starts_with("magnet:") || url_str.ends_with(".torrent") {
return Some(Platform::Other("magnet".to_string()));
}