Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat: remove Vimeo parsing logic from URL parser
Tonho0be7d859828f
diff --git a/src-tauri/src/core/url_parser.rs b/src-tauri/src/core/url_parser.rsindex 05166b6b..a18c0474 100644--- a/src-tauri/src/core/url_parser.rs+++ b/src-tauri/src/core/url_parser.rs@@ -36,7 +36,6 @@ pub fn parse_url(url_str: &str) -> Option<ParsedUrl> {Platform::Twitter => parse_twitter(&segments),Platform::Reddit => parse_reddit(&segments),Platform::Twitch => parse_twitch(&parsed, &segments),- Platform::Vimeo => parse_vimeo(&segments),Platform::Hotmart => parse_hotmart(&segments),Platform::Pinterest => parse_pinterest(&segments),Platform::Bluesky => parse_bluesky(&segments),@@ -190,22 +189,6 @@ fn parse_twitch(parsed: &url::Url, segments: &[&str]) -> (Option<String>, Parsed(None, ParsedContentType::Unknown)}-fn parse_vimeo(segments: &[&str]) -> (Option<String>, ParsedContentType) {- if let Some(first) = segments.first() {- if first.chars().all(|c| c.is_ascii_digit()) {- return (Some(first.to_string()), ParsedContentType::Video);- }-- if segments.get(1) == Some(&"videos") {- return (Some(first.to_string()), ParsedContentType::Profile);- }-- return (Some(first.to_string()), ParsedContentType::Profile);- }-- (None, ParsedContentType::Unknown)-}-fn parse_hotmart(segments: &[&str]) -> (Option<String>, ParsedContentType) {if segments.contains(&"club") || segments.contains(&"lesson") || segments.contains(&"course") {let id = segments.last().map(|s| s.to_string());