remove globals
This commit is contained in:
@@ -72,7 +72,7 @@ func serveTrackRaw(w http.ResponseWriter, r *http.Request, opts serveTrackOption
|
||||
}
|
||||
|
||||
func serveTrackEncode(w http.ResponseWriter, r *http.Request, opts serveTrackOptions) {
|
||||
profile := encode.Profiles[opts.pref.Profile]
|
||||
profile := encode.Profiles()[opts.pref.Profile]
|
||||
bitrate := encode.GetBitrate(opts.maxBitrate, profile)
|
||||
trackPath := path.Join(opts.musicPath, opts.track.RelPath())
|
||||
cacheKey := encode.CacheKey(trackPath, opts.pref.Profile, bitrate)
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"go.senan.xyz/gonic/version"
|
||||
)
|
||||
|
||||
var (
|
||||
const (
|
||||
apiVersion = "1.9.0"
|
||||
xmlns = "http://subsonic.org/restapi"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user