aboutsummaryrefslogtreecommitdiffstats
path: root/src/voice/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/voice/mod.rs11
1 files changed, 10 insertions, 1 deletions
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<songbird::input::Input> {
231/// Works for both finite media and live streams (yt-dlp handles the difference). 231/// Works for both finite media and live streams (yt-dlp handles the difference).
232pub async fn ytdlp_download(url: &str) -> Result<Vec<u8>> { 232pub async fn ytdlp_download(url: &str) -> Result<Vec<u8>> {
233 let output = tokio::process::Command::new("yt-dlp") 233 let output = tokio::process::Command::new("yt-dlp")
234 .args(["-f", "bestaudio", "-o", "-", "--no-playlist", url]) 234 .args([
235 "--ignore-config",
236 "-f",
237 "bestaudio",
238 "-o",
239 "-",
240 "--no-playlist",
241 "--",
242 url,
243 ])
235 .stdout(std::process::Stdio::piped()) 244 .stdout(std::process::Stdio::piped())
236 .stderr(std::process::Stdio::piped()) 245 .stderr(std::process::Stdio::piped())
237 .output() 246 .output()