navidrome/resources/mime_types.yaml
Deluan Quintão 4113d954ca
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.
2026-09-26 11:43:00 -04:00

55 lines
1.2 KiB
YAML

# This file controls the MIME types that are used by the Navidrome.
# You can add or modify entries to match your needs.
# Any "audio/*" MIME type is considered a valid audio file for Navidrome, but will only work properly if
# supported by `taglib` and/or `ffmpeg`.
# Any "image/*" MIME type is considered a valid image file to be used as cover art.
types:
# Audio
.mp3: audio/mpeg
.ogg: audio/ogg
.oga: audio/ogg
.opus: audio/ogg
.aac: audio/aac
.alac: audio/mp4
.m4a: audio/mp4
.m4b: audio/mp4
.flac: audio/flac
.wav: audio/x-wav
.wma: audio/x-ms-wma
.ape: audio/x-monkeys-audio
.mpc: audio/x-musepack
.shn: audio/x-shn
.aif: audio/x-aiff
.aiff: audio/x-aiff
.m3u: audio/x-mpegurl
.pls: audio/x-scpls
.dsf: audio/x-dsf
.wv: audio/x-wavpack
.wvp: audio/x-wavpack
.tak: audio/tak
.mka: audio/x-matroska
.webm: audio/webm
# Image
.gif: image/gif
.jpg: image/jpeg
.jpeg: image/jpeg
.webp: image/webp
.png: image/png
.bmp: image/bmp
.jxl: image/jxl
.heic: image/heic
.heif: image/heif
# List of audio formats that are considered lossless
lossless:
- .flac
- .alac
- .ape
- .shn
- .dsf
- .wv
- .wvp
- .tak
- .wav