From 6181fc78cd125c48584e933a60188ec51819130d Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Tue, 29 Nov 2022 11:15:49 -0500 Subject: nix: ensure ownership on start --- src/audio/ytdl.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/audio') diff --git a/src/audio/ytdl.rs b/src/audio/ytdl.rs index 002244c..6042f02 100644 --- a/src/audio/ytdl.rs +++ b/src/audio/ytdl.rs @@ -18,7 +18,12 @@ use lazy_static::lazy_static; use crate::{Result, CONFIG}; lazy_static! { - static ref YTDL_COMMAND: String = CONFIG.ytdl.clone().unwrap_or("youtube-dl".to_owned()); + static ref YTDL_COMMAND: String = { + let result = CONFIG.ytdl.clone().unwrap_or("youtube-dl".to_owned()); + log::debug!("got ytdl: {}", result); + + result + }; } pub fn ytdl_url(uri: &str) -> Result { -- cgit v1.3.1