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/commands/playback.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/commands/playback.rs') diff --git a/src/commands/playback.rs b/src/commands/playback.rs index 48f3286..70dd704 100644 --- a/src/commands/playback.rs +++ b/src/commands/playback.rs @@ -78,7 +78,8 @@ pub async fn _play(ctx: PoiseContext<'_>, url: &url::Url) -> anyhow::Result<()> data.get::().unwrap().clone() }; - let input = YoutubeDl::new_ytdl_like("yt-dlp", client.clone(), url.to_string()); + let input = + YoutubeDl::new_ytdl_like(&crate::config::YTDL_COMMAND, client.clone(), url.to_string()); call.enqueue_input(input.into()).await; util::react(ctx, ReactionType::Unicode("📣".to_owned())).await?; -- cgit v1.3.1