diff options
| author | jakka <jakkadoujin@gmail.com> | 2025-06-19 11:58:43 +0300 |
|---|---|---|
| committer | jakka <jakkadoujin@gmail.com> | 2025-06-19 11:58:43 +0300 |
| commit | 08021b436704645bdbade03bd70403f60dd594fb (patch) | |
| tree | b3a527bd6f89f2344ea3c9b0156f6a51b116f2a7 /src/main.rs | |
| parent | aa95671996bc55f69305505c5da2e715a85da189 (diff) | |
better file path handling, fixed tests
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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::<PathBuf>("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>(()) })?; |
