artist

package
v0.0.0-...-5fee3ad Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	Username string
	// contains filtered or unexported fields
}

Artist represents a structure to help query the `artist` LastFM API functions.

func New

func New(client *lastfm.Client, username string, autocorrect bool) (artist *Artist)

New returns an instance of the `album` API endpoint functions for LastFM.

func (*Artist) AddTags

func (a *Artist) AddTags(artist string, tags []string) (err error)

AddTags adds tags to an artist on LastFM using a list of user supplied tags

func (*Artist) GetCorrection

func (a *Artist) GetCorrection(artist string) (ac *artistCorrection, err error)

GetCorrection fetches canonical artist details from LastFM for the provided artist

func (*Artist) GetInfo

func (a *Artist) GetInfo(artist, mbid, lang string) (ai *artistInfo, err error)

GetInfo fetches artist metadata from LastFM using artist name or MBID (MusicBrainz ID)

language needs to be an ISO 639, alpha-2 encoded string (default: en)

func (*Artist) GetSimilar

func (a *Artist) GetSimilar(artist, mbid string) (as *artistSimilar, err error)

GetSimilar fetches similar artists from LastFM for the provided artist or MBID (MusicBrainz ID)

func (*Artist) GetTags

func (a *Artist) GetTags(artist, mbid string) (at *artistTags, err error)

GetTags fetches user-applied tags on an artist from LastFM for the provided artist name or MBID (MusicBrainz ID)

func (*Artist) GetTopAlbums

func (a *Artist) GetTopAlbums(artist, mbid string, page int) (ata *artistTopAlbums, err error)

GetTopAlbums fetches top albums for the provided artist from LastFM, based on artist name or MBID (MusicBrainz ID)

func (*Artist) GetTopTags

func (a *Artist) GetTopTags(artist, mbid string) (att *artistTopTags, err error)

GetTopTags fetches top tags for the provided artist from LastFM, ordered by tag count, based on artist name or MBID (MusicBrainz ID)

func (*Artist) GetTopTracks

func (a *Artist) GetTopTracks(artist, mbid string, page int) (att *artistTopTracks, err error)

GetTopTracks fetches top tracks for the provided artist from LastFM, based on artist name or MBID (MusicBrainz ID)

func (*Artist) RemoveTag

func (a *Artist) RemoveTag(artist, tag string) (err error)

RemoveTag removes the provided user-applied tag from an artist on LastFM

func (*Artist) Search

func (a *Artist) Search(artist string, page int) (as *artistSearch, err error)

Search searches for an artist on LastFM.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL