fix(subsonic): send valid content-type with http.ServeStream

This commit is contained in:
sentriz
2022-12-26 18:26:13 +00:00
parent 63f7b05b07
commit 8dc58c71a4
8 changed files with 52 additions and 51 deletions

View File

@@ -2,6 +2,7 @@ package spec
import (
"fmt"
"strings"
"time"
"go.senan.xyz/gonic"
@@ -422,3 +423,7 @@ func formatRating(rating float64) string {
}
return fmt.Sprintf("%.2f", rating)
}
func formatExt(ext string) string {
return strings.TrimPrefix(ext, ".")
}