aboutsummaryrefslogtreecommitdiff
path: root/src/audio/ytdl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/ytdl.rs')
-rw-r--r--src/audio/ytdl.rs7
1 files changed, 6 insertions, 1 deletions
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<String> {