From b7392fc7b4eefe9868c2de62f5db674391026920 Mon Sep 17 00:00:00 2001 From: Chaos Rogers Date: Thu, 11 Sep 2025 11:00:52 +0100 Subject: [PATCH] fix: handle SoundCloud URLs with query parameters Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 25b41b9..b26e293 100644 --- a/src/main.rs +++ b/src/main.rs @@ -86,10 +86,11 @@ fn download_media(video_url: &str, download_path: &Path, settings: &Settings) -> } } else if video_url.contains("soundcloud.com") { println!("[INFO] Soundcloud link detected. Using scdl..."); + let clean_url = video_url.split('?').next().unwrap(); cmd = Command::new("scdl"); cmd.args([ "-l", - video_url, + clean_url, "-c", "--onlymp3", "--yt-dlp-args",