"application/x-riff" == WAV audio

feat/vaults
Tomáš Mládek 2022-02-07 00:01:38 +01:00
parent 9a6c24f235
commit 34e737d457
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
2 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,7 @@ impl PreviewStore {
Some(tm) if tm.starts_with("video") || tm == "application/x-matroska" => {
Ok(VideoPath(&file.path).get_thumbnail()?)
}
Some(tm) if tm.starts_with("audio") => {
Some(tm) if tm.starts_with("audio") || tm == "application/x-riff" => {
Ok(AudioPath(&file.path).get_thumbnail()?)
}
Some(tm) if tm.starts_with("image") => {

View File

@ -9,7 +9,9 @@
$: mimeType = String($entity?.get("FILE_MIME"));
$: audio = mimeType.startsWith("audio");
$: audio = ["audio", "application/x-riff"].some((p) =>
mimeType.startsWith(p)
);
$: video = ["video", "application/x-matroska"].some((p) =>
mimeType.startsWith(p)
);