album

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 Album

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

Album represents a structure to help query the `album` LastFM API functions.

func New

func New(client *lastfm.Client, username string, autocorrect bool) (album *Album)

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

func (*Album) AddTags

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

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

func (*Album) GetInfo

func (a *Album) GetInfo(artist, album, mbid, lang string) (ai *albumInfo, err error)

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

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

func (*Album) GetTags

func (a *Album) GetTags(artist, album, mbid string) (at *albumTags, err error)

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

func (*Album) GetTopTags

func (a *Album) GetTopTags(artist, album, mbid string) (att *albumTopTags, err error)

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

func (*Album) RemoveTag

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

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

func (*Album) Search

func (a *Album) Search(artist, album string, page int) (as *albumSearch, err error)

Search searches for a track by artist and album name on LastFM.

Jump to

Keyboard shortcuts

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