enable mkv previews
parent
6b70d706fa
commit
97198848c4
|
@ -60,7 +60,7 @@ impl PreviewStore {
|
|||
if let Some(file) = files.get(0) {
|
||||
let preview = match tree_magic_mini::from_filepath(&file.path) {
|
||||
Some(tm) if tm.starts_with("text") => Ok(TextPath(&file.path).get_thumbnail()?),
|
||||
Some(tm) if tm.starts_with("video") => {
|
||||
Some(tm) if tm.starts_with("video") || tm == "application/x-matroska" => {
|
||||
Ok(VideoPath(&file.path).get_thumbnail()?)
|
||||
}
|
||||
Some(tm) if tm.starts_with("image") => {
|
||||
|
|
Loading…
Reference in New Issue