listenbrainz

package
v0.21.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListenBrainz

type ListenBrainz struct {
	// contains filtered or unexported fields
}

func NewListenBrainz

func NewListenBrainz(client client.Getter) *ListenBrainz

func (*ListenBrainz) ArtistTopTracks

func (l *ListenBrainz) ArtistTopTracks(arid string) ([]TopTrack, error)

ArtistTopTracks returns all top tracks from ListenBrainz.

type Result

type Result struct {
	// ignore artist_mbids
	// ignore artists
	ArtistName    string `json:"artist_name"`
	Length        int    `json:"length"`
	RID           string `json:"recording_mbid"`
	RecordingName string `json:"recording_name"`
	REID          string `json:"release_mbid"`
	ReleaseName   string `json:"release_name"`
	ListenCount   int    `json:"total_listen_count"`
	UserCount     int    `json:"user_count"`
}

type TopTrack

type TopTrack struct {
	// contains filtered or unexported fields
}

func (TopTrack) Rank

func (t TopTrack) Rank() int

func (TopTrack) Track

func (t TopTrack) Track() string

Jump to

Keyboard shortcuts

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