album

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_KEY  = "12dec50313f885d407cf8132697b8712"
	ENDPOINT = "https://ws.audioscrobbler.com/2.0"
)

Variables

This section is empty.

Functions

func GetYouTubeDLPath

func GetYouTubeDLPath() string

func RegisterHooks added in v0.0.2

func RegisterHooks()

Types

type AlbumInfo

type AlbumInfo struct {
	Title, MBID, ImageURL string
}

type ArtistInfo

type ArtistInfo struct {
	Name, MBID string
}

type TrackInfo

type TrackInfo struct {
	Title, MBID string
	Tags        []string
	Artist      *ArtistInfo
	Album       *AlbumInfo
}

func FetchTrackInfo

func FetchTrackInfo(artist, track string) (*TrackInfo, error)

type VideoInfo

type VideoInfo struct {
	Artist, Track, Title, ID string
	Duration                 int64
}

func FetchVideoInfo

func FetchVideoInfo(result *search.SearchResult) (*VideoInfo, error)

Jump to

Keyboard shortcuts

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