From f39b1607b54073646b8ebae8852000706db885ad Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Fri, 16 Aug 2024 01:46:17 -0400 Subject: fix required command options --- src/util/mod.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/util/mod.rs') diff --git a/src/util/mod.rs b/src/util/mod.rs index f959a37..5b943fe 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -176,15 +176,6 @@ pub async fn ytdl_url(uri: &str) -> anyhow::Result { use serde_json::Value; use tokio::process::Command; - lazy_static! { - static ref YTDL_COMMAND: String = { - let result = CONFIG.ytdl.clone().unwrap_or("youtube-dl".to_owned()); - debug!("got ytdl: {}", result); - - result - }; - } - let args = [ "-f", "webm[abr>0]/bestaudio/best", @@ -196,7 +187,7 @@ pub async fn ytdl_url(uri: &str) -> anyhow::Result { debug!("downloading info for uri: {uri}"); - let mut command = Command::new(&*YTDL_COMMAND); + let mut command = Command::new(&*crate::config::YTDL_COMMAND); command.args(args).stdin(Stdio::null()); debug!("running command: {command:?}"); -- cgit v1.3.1