From 928aa2fdaef5f82016465bbe8a18b2a677286d7c Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Tue, 28 Oct 2025 18:15:23 +0200 Subject: [PATCH] chore: add debug messages --- src/download.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/download.rs b/src/download.rs index 64a56bb..c6f047b 100644 --- a/src/download.rs +++ b/src/download.rs @@ -17,7 +17,7 @@ use std::{ use teloxide::{Bot, types::ChatId}; use tempfile::{TempDir, tempdir}; use tokio::{fs::read_dir, process::Command}; -use tracing::{info, warn}; +use tracing::{debug, info, warn}; const FORBIDDEN_EXTENSIONS: &[&str] = &["json", "txt", "log"]; @@ -155,9 +155,6 @@ pub async fn download_youtube(url: impl Into) -> Result "--no-playlist", "-t", "mp4", - "--restrict-filenames", - "-o", - "%(title)s.%(ext)s", "--postprocessor-args", &config.youtube.postprocessor_args, ] @@ -266,6 +263,7 @@ async fn run_yt_dlp( } args.push(url.to_string()); + debug!(args = ?args, "downloadting content"); let args_ref = args.iter().map(String::as_ref).collect::>(); run_command_in_tempdir("yt-dlp", &args_ref).await }