Get lossless format list from server

This commit is contained in:
Deluan
2021-04-06 22:18:48 -04:00
parent 52812fa48b
commit 9913b92905
7 changed files with 51 additions and 87 deletions
+5
View File
@@ -2,6 +2,10 @@ package consts
import "mime"
var LosslessFormats = []string{
"flac", "wav", "alac", "ape", "dsf", "wav", "shn", "wv", "wvp",
}
func init() {
mt := map[string]string{
".mp3": "audio/mpeg",
@@ -9,6 +13,7 @@ func init() {
".oga": "audio/ogg",
".opus": "audio/ogg",
".aac": "audio/mp4",
".alac": "audio/mp4",
".m4a": "audio/mp4",
".m4b": "audio/mp4",
".flac": "audio/flac",