mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-11 11:57:12 +02:00
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:
parent
6b05189190
commit
4113d954ca
2 changed files with 5 additions and 0 deletions
|
|
@ -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())
|
||||
})
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ types:
|
|||
.wvp: audio/x-wavpack
|
||||
.tak: audio/tak
|
||||
.mka: audio/x-matroska
|
||||
.webm: audio/webm
|
||||
|
||||
# Image
|
||||
.gif: image/gif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue