[+] Thumbnailer check mime type

This commit is contained in:
Azalea Gui
2023-02-23 13:41:04 -05:00
parent 543f5e3aa8
commit 24c4a0c8d4
+5
View File
@@ -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)
}
}