mirror of
https://github.com/navidrome/navidrome.git
synced 2024-08-28 05:21:29 +02:00
33 lines
664 B
Go
33 lines
664 B
Go
package consts
|
|
|
|
import "mime"
|
|
|
|
func init() {
|
|
mt := map[string]string{
|
|
".mp3": "audio/mpeg",
|
|
".ogg": "audio/ogg",
|
|
".oga": "audio/ogg",
|
|
".opus": "audio/ogg",
|
|
".aac": "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",
|
|
".gif": "image/gif",
|
|
".jpg": "image/jpeg",
|
|
".jpeg": "image/jpeg",
|
|
".png": "image/png",
|
|
".bmp": "image/bmp",
|
|
}
|
|
|
|
for ext, typ := range mt {
|
|
_ = mime.AddExtensionType(ext, typ)
|
|
}
|
|
}
|