Skip to content

Commit

Permalink
feat(lastfm): scrobble with duration
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Sep 6, 2022
1 parent 0f80ae2 commit 7d0d036
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scrobble/lastfm/lastfm.go
Expand Up @@ -262,6 +262,7 @@ func (s *Scrobbler) Scrobble(user *db.User, track *db.Track, stamp time.Time, su
params.Add("album", track.Album.TagTitle)
params.Add("mbid", track.TagBrainzID)
params.Add("albumArtist", track.Artist.Name)
params.Add("duration", strconv.Itoa(track.Length))
params.Add("api_sig", getParamSignature(params, secret))
_, err = makeRequest("POST", params)
return err
Expand Down

0 comments on commit 7d0d036

Please sign in to comment.