diff --git a/backend/src/thumbnailer.rs b/backend/src/thumbnailer.rs index d9c7f08..cdbac55 100644 --- a/backend/src/thumbnailer.rs +++ b/backend/src/thumbnailer.rs @@ -35,4 +35,9 @@ impl Thumbnailer { Ok(t) } + + /// Check if this thumbnailer should run on a specific mime type + pub fn check(&self, mime: &str) -> bool { + self.mime_type.contains(mime) + } }