From 127fbffb65564e9a1e26061f5f090ba6a431f7bf Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 23 Feb 2023 13:41:18 -0500 Subject: [PATCH] [T] Test thumbnailer --- backend/src/test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/src/test.rs b/backend/src/test.rs index 8ccba23..680d95f 100644 --- a/backend/src/test.rs +++ b/backend/src/test.rs @@ -22,5 +22,7 @@ fn main() { let thumbnailer_path = "/usr/share/thumbnailers/totem.thumbnailer"; let thumbnailer = Thumbnailer::load(Path::new(thumbnailer_path)).unwrap(); - info!("thumb {:?}", thumbnailer) + info!("thumb {:?}", thumbnailer); + info!("check {:?}", thumbnailer.check("audio/x-mp3")); + thumbnailer.gen(path.to_str().unwrap(), "/tmp/test.png", 256).expect("Generation failed"); }