enable mkv previews

feat/vaults
Tomáš Mládek 2022-02-03 16:54:22 +01:00
parent 6b70d706fa
commit 97198848c4
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
1 changed files with 1 additions and 1 deletions

View File

@ -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") => {