diff options
| author | Nathan Perry <np@nathanperry.dev> | 2024-05-08 14:15:42 -0400 |
|---|---|---|
| committer | Nathan Perry <np@nathanperry.dev> | 2024-05-08 14:16:01 -0400 |
| commit | 47817c4166937af24041a93e56ad9f841bf1e8f1 (patch) | |
| tree | a8ec0a674a5a4e5046e1bc92c1c317a48b5e4815 /src/util.rs | |
| parent | ffba60b278162707bc4eb004c3bfb6b2e9595213 (diff) | |
fixups: memes working
Diffstat (limited to 'src/util.rs')
| -rw-r--r-- | src/util.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/util.rs b/src/util.rs index d59c4da..0fd746b 100644 --- a/src/util.rs +++ b/src/util.rs @@ -120,7 +120,14 @@ pub async fn ytdl_url(uri: &str) -> Result<String> { uri,
];
- let out = Command::new(&*YTDL_COMMAND).args(&args).stdin(Stdio::null()).output().await?;
+ debug!("downloading info for uri: {uri}");
+
+ let mut command = Command::new(&*YTDL_COMMAND);
+ command.args(&args).stdin(Stdio::null());
+
+ debug!("running command: {command:?}");
+
+ let out = command.output().await?;
if !out.status.success() {
return Err(anyhow::anyhow!("running ytdl: {out:?}"));
|
