From 1d4eba1ca43ad6ad6632c903eec79501c8c6183d Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 4 Nov 2026 01:06:48 +0100 Subject: yt-dlp: ignore configs and stop option injection --- src/voice/mod.rs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/voice/mod.rs') diff --git a/src/voice/mod.rs b/src/voice/mod.rs index 5a89f93..0b6022c 100644 --- a/src/voice/mod.rs +++ b/src/voice/mod.rs @@ -231,7 +231,16 @@ fn decode_stream(mss: MediaSourceStream) -> Result { /// Works for both finite media and live streams (yt-dlp handles the difference). pub async fn ytdlp_download(url: &str) -> Result> { let output = tokio::process::Command::new("yt-dlp") - .args(["-f", "bestaudio", "-o", "-", "--no-playlist", url]) + .args([ + "--ignore-config", + "-f", + "bestaudio", + "-o", + "-", + "--no-playlist", + "--", + url, + ]) .stdout(std::process::Stdio::piped()) .stderr(std::process::Stdio::piped()) .output() -- cgit v1.2.3