From 08021b436704645bdbade03bd70403f60dd594fb Mon Sep 17 00:00:00 2001 From: jakka Date: Thu, 19 Jun 2025 11:58:43 +0300 Subject: better file path handling, fixed tests --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 5d3835f..da04a9e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,7 +90,7 @@ fn main() -> Result<()> { let path = args.get_one::("path"); if path.is_none() && !args.get_flag("clean") && !args.get_flag("doit") { - let count = files::count_reencode_files(path, &conn).await.unwrap(); + let count = conn.get_toencode_number().await?; println!("Files to reencode:\t{count}"); } else if let Some(realpath) = path { if !args.get_flag("doit") { @@ -103,7 +103,7 @@ fn main() -> Result<()> { } if args.get_flag("doit") { - files::reencode_files(path, &conn).await?; + files::reencode_files(&conn).await?; } Ok::<(), anyhow::Error>(()) })?; -- cgit v1.3.1