Detect audio files better

This commit is contained in:
Wim Brand
2020-01-22 09:38:30 +01:00
parent 5dacab2220
commit fc26a9914a

View File

@@ -106,7 +106,8 @@ class Viewer {
new VideoViewer(v, file, nextItem).render(v.divFilepreview);
} else if (
file.mime_type.startsWith("audio") ||
file.mime_type === "application/ogg"
file.mime_type === "application/ogg" ||
file.name.endsWith(".mp3")
) {
new AudioViewer(v, file, nextItem).render(v.divFilepreview);
} else if (