lastfm: rename scrobbleopts scrobbleoptions
This commit is contained in:
@@ -81,8 +81,10 @@ func writeResp(w http.ResponseWriter, r *http.Request, resp *spec.Response) erro
|
||||
return ew.err
|
||||
}
|
||||
|
||||
type handlerSubsonic func(r *http.Request) *spec.Response
|
||||
type handlerSubsonicRaw func(w http.ResponseWriter, r *http.Request) *spec.Response
|
||||
type (
|
||||
handlerSubsonic func(r *http.Request) *spec.Response
|
||||
handlerSubsonicRaw func(w http.ResponseWriter, r *http.Request) *spec.Response
|
||||
)
|
||||
|
||||
func (c *Controller) H(h handlerSubsonic) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -13,9 +13,9 @@ import (
|
||||
|
||||
jd "github.com/josephburnett/jd/lib"
|
||||
|
||||
"go.senan.xyz/gonic/server/db"
|
||||
"go.senan.xyz/gonic/server/ctrlbase"
|
||||
"go.senan.xyz/gonic/server/ctrlsubsonic/params"
|
||||
"go.senan.xyz/gonic/server/db"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -55,7 +55,7 @@ func (c *Controller) ServeScrobble(r *http.Request) *spec.Response {
|
||||
Preload("Artist").
|
||||
First(track, id)
|
||||
// scrobble with above info
|
||||
opts := lastfm.ScrobbleOpts{
|
||||
opts := lastfm.ScrobbleOptions{
|
||||
Track: track,
|
||||
// clients will provide time in miliseconds, so use that or
|
||||
// instead convert UnixNano to miliseconds
|
||||
|
||||
@@ -9,9 +9,9 @@ import (
|
||||
|
||||
"github.com/jinzhu/gorm"
|
||||
|
||||
"go.senan.xyz/gonic/server/db"
|
||||
"go.senan.xyz/gonic/server/ctrlsubsonic/params"
|
||||
"go.senan.xyz/gonic/server/ctrlsubsonic/spec"
|
||||
"go.senan.xyz/gonic/server/db"
|
||||
"go.senan.xyz/gonic/server/encode"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user