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 ¶
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.
type SimilarArtist ¶
type SimilarArtist struct {
Name string
}
SimilarArtist is a name returned from the similar artists list.
Click to show internal directories.
Click to hide internal directories.