diff --git a/src/network/env.rs b/src/network/env.rs index 0aa4eb2..14d30fb 100644 --- a/src/network/env.rs +++ b/src/network/env.rs @@ -42,19 +42,20 @@ impl Default for NetworkEnv { .context(format!("Parsing bytes from body of response for {}", url)) }), download_as_mp3: Box::new(|url, channel_name| { + println!("Downloading: {}", url); let cmd = "yt-dlp"; let output = Command::new(cmd) .arg("--extract-audio") .arg("--audio-format") .arg("mp3") - .arg("-p") + .arg("-P") .arg(format!("~/Music/{}", channel_name)) .arg(&url.0) .output() .with_context(|| { format!( - "Running: {} --extract-audio --audio-format mp3 {}", - cmd, url + "Running: {} --extract-audio --audio-format mp3 -p ~/Music/{} {}", + cmd, channel_name, url ) })?; if !output.stderr.is_empty() {