diff options
| author | salmonik <salmonik@tuta.io> | 2026-11-04 01:06:38 +0100 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-11-04 01:06:38 +0100 |
| commit | 64afa0fd8c863deb6a1568428dfaf2ce67ef9085 (patch) | |
| tree | 14ff21f7bcb30d8a5234a2d535e0977d0d5f5a04 /src/commands/utilities.rs | |
| parent | say: do not abort if the ephemeral ack is already gone (diff) | |
| download | senator-sperma-64afa0fd8c863deb6a1568428dfaf2ce67ef9085.tar.gz senator-sperma-64afa0fd8c863deb6a1568428dfaf2ce67ef9085.zip | |
copyparty: never send the password to foreign hosts
Diffstat (limited to 'src/commands/utilities.rs')
| -rw-r--r-- | src/commands/utilities.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commands/utilities.rs b/src/commands/utilities.rs index b77f44d..33d732f 100644 --- a/src/commands/utilities.rs +++ b/src/commands/utilities.rs | |||
| @@ -4,7 +4,7 @@ use tracing::warn; | |||
| 4 | use super::autocomplete::any_file; | 4 | use super::autocomplete::any_file; |
| 5 | use crate::music::sanitize_yt_url; | 5 | use crate::music::sanitize_yt_url; |
| 6 | use crate::Data; | 6 | use crate::Data; |
| 7 | use crate::copyparty::{html_decode, percent_decode}; | 7 | use crate::copyparty::{html_decode, percent_decode, redact_url}; |
| 8 | use crate::error::{Error, Result}; | 8 | use crate::error::{Error, Result}; |
| 9 | use crate::lang; | 9 | use crate::lang; |
| 10 | 10 | ||
| @@ -502,7 +502,11 @@ async fn run_download( | |||
| 502 | let stderr = String::from_utf8_lossy(&output.stderr); | 502 | let stderr = String::from_utf8_lossy(&output.stderr); |
| 503 | // Keep the full yt-dlp trace in the logs; the user only sees the | 503 | // Keep the full yt-dlp trace in the logs; the user only sees the |
| 504 | // short `fmt_download_failed` (translated) message. | 504 | // short `fmt_download_failed` (translated) message. |
| 505 | warn!(url = %url, "yt-dlp failed:\n{}", stderr.trim_end()); | 505 | warn!( |
| 506 | url = %redact_url(url), | ||
| 507 | "yt-dlp failed:\n{}", | ||
| 508 | stderr.trim_end() | ||
| 509 | ); | ||
| 506 | let _ = tokio::fs::remove_dir_all(&dl_dir).await; | 510 | let _ = tokio::fs::remove_dir_all(&dl_dir).await; |
| 507 | ctx.say(lang::fmt_download_failed(&stderr)).await?; | 511 | ctx.say(lang::fmt_download_failed(&stderr)).await?; |
| 508 | return Ok(()); | 512 | return Ok(()); |
