Documentation ¶
Index ¶
- type Track
- func (t *Track) AddTags(artist, track string, tags []string) (err error)
- func (t *Track) GetCorrection(artist, track string) (tc *trackCorrection, err error)
- func (t *Track) GetInfo(artist, track, mbid string) (ti *trackInfo, err error)
- func (t *Track) GetSimilar(artist, track, mbid string) (ts *trackSimilar, err error)
- func (t *Track) GetTags(artist, track, mbid string) (tt *trackTags, err error)
- func (t *Track) GetTopTags(artist, track, mbid string) (ttt *trackTopTags, err error)
- func (t *Track) Love(artist, track string) (err error)
- func (t *Track) RemoveTag(artist, track, tag string) (err error)
- func (t *Track) Scrobble(scrobbleList []lastfm.Scrobble) (ts *trackScrobble, err error)
- func (t *Track) Search(artist, track string, page int) (ts *trackSearch, err error)
- func (t *Track) Unlove(artist, track string) (err error)
- func (t *Track) UpdateNowPlaying(scrobble lastfm.Scrobble) (tnp *trackUpdateNowPlaying, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Track ¶
type Track struct { Username string // contains filtered or unexported fields }
Track represents a structure to help query the `track` LastFM API functions.
func New ¶
New returns an instance of the `track` API endpoint functions for LastFM.
func (*Track) AddTags ¶
AddTags adds tags to a track on LastFM using a list of user supplied tags
func (*Track) GetCorrection ¶
GetCorrection fetches canonical track details from LastFM for the provided artist and track
func (*Track) GetInfo ¶
GetInfo fetches track metadata from LastFM using artist and track name, or MBID (MusicBrainz ID)
func (*Track) GetSimilar ¶
GetSimilar fetches similar tracks from LastFM for the provided artist and track name, or MBID (MusicBrainz ID)
func (*Track) GetTags ¶
GetTags fetches user-applied tags on a track from LastFM for the provided artist and track name, or MBID (MusicBrainz ID)
func (*Track) GetTopTags ¶
GetTopTags fetches top tags for the provided track from LastFM, ordered by tag count, based on artist and track name, or MBID (MusicBrainz ID)
func (*Track) Love ¶
Love marks the track as loved for the user on LastFM
func (*Track) RemoveTag ¶
RemoveTag removes the provided user-applied tag from a track on LastFM
func (*Track) Scrobble ¶
Scrobble adds a track-play to the user's profile on LastFM for each track in the provided scrobble list.
The scrobble list needs to be a slice of the Scrobble struct.
func (*Track) Search ¶
Search searches for a track by artist and track name on LastFM.
func (*Track) Unlove ¶
Unlove unmarks the track as loved for the user on LastFM