artistinfo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtistInfo

type ArtistInfo struct {
	Bio      string
	ImageURL string
	Similar  []SimilarArtist
}

ArtistInfo holds metadata fetched from Last.fm.

func FetchLastFm

func FetchLastFm(apiKey, artistName string) (*ArtistInfo, error)

FetchLastFm fetches artist info from the Last.fm API.

type MBInfo

type MBInfo struct {
	ID             string
	Disambiguation string
	Type           string
	Area           string
	Begin          string
	End            string
	Tags           []string
}

MBInfo holds metadata fetched from MusicBrainz.

func FetchMusicBrainz

func FetchMusicBrainz(artistName string) (*MBInfo, error)

FetchMusicBrainz searches MusicBrainz for the named artist and returns metadata.

type Result

type Result struct {
	Bio      string
	ImageURL string
	Similar  []SimilarArtist
	MbID     string
	MbArea   string
	MbType   string
	MbBegin  string
	MbEnd    string
	MbTags   string
}

Result is the combined metadata from Last.fm and MusicBrainz.

func Fetch

func Fetch(apiKey, artistName string) (*Result, error)

Fetch retrieves artist metadata from Last.fm (primary) and MusicBrainz (supplementary).

type SimilarArtist

type SimilarArtist struct {
	Name string
}

SimilarArtist is a name returned from the similar artists list.

Jump to

Keyboard shortcuts

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