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(page): enhance URL validation to include .torrent files

Tonhof68cd65d192c
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index ecef660e..574193f9 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -161,7 +161,7 @@
);
function isUrl(value: string): boolean {
- return value.startsWith("http://") || value.startsWith("https://") || value.startsWith("magnet:") || value.startsWith("p2p:");
+ return value.startsWith("http://") || value.startsWith("https://") || value.startsWith("magnet:") || value.startsWith("p2p:") || value.endsWith(".torrent");
}
function handleInput() {