diff --git a/src/main.rs b/src/main.rs index 04951d2..364eb60 100644 --- a/src/main.rs +++ b/src/main.rs @@ -122,8 +122,10 @@ fn is_already_downloaded(link: &Link, file_name: &str) -> Result { fn download_audio(link: &Link) -> Result<()> { use std::process::Command; + let cmd = "yt-dlp"; println!("download audio for {}", link.href()); - let output = Command::new("youtube-dl") + println!("{} --extract-audio --audio-format mp3 {}", cmd, &link.href); + let output = Command::new(cmd) .arg("--extract-audio") .arg("--audio-format") .arg("mp3")