fix(scanner): register .webm as audio/webm (#6230)

Go 1.27 changed the built-in MIME type for .webm from audio/webm to video/webm, so the scanner stopped treating WebM files as audio after the Go bump in 0.64.0. Map .webm to audio/webm in mime_types.yaml so it no longer depends on the Go version.
This commit is contained in:
Deluan Quintão 2026-09-26 11:43:00 -04:00 • committed by GitHub
commit 4113d954ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -18,6 +18,10 @@ var _ = Describe("File Types()", func() {
Expect(model.IsAudioFile("test.flac")).To(BeTrue())
})
It("returns true for a WebM file", func() {
Expect(model.IsAudioFile("test.webm")).To(BeTrue())
})
It("returns false for a non-audio file", func() {
Expect(model.IsAudioFile("test.jpg")).To(BeFalse())
})

View file

@ -29,6 +29,7 @@ types:
.wvp: audio/x-wavpack
.tak: audio/tak
.mka: audio/x-matroska
.webm: audio/webm
# Image
.gif: image/gif