lastfm: rename scrobbleopts scrobbleoptions

This commit is contained in:
sentriz
2020-05-01 02:15:12 +01:00
parent 24212af42e
commit a541f97cd8
8 changed files with 18 additions and 12 deletions

View File

@@ -74,13 +74,13 @@ func GetSession(apiKey, secret, token string) (string, error) {
return resp.Session.Key, nil
}
type ScrobbleOpts struct {
type ScrobbleOptions struct {
Track *db.Track
StampMili int
Submission bool
}
func Scrobble(apiKey, secret, session string, opts ScrobbleOpts) error {
func Scrobble(apiKey, secret, session string, opts ScrobbleOptions) error {
params := url.Values{}
if opts.Submission {
params.Add("method", "track.Scrobble")