Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccurateSongData ¶
type SearchResult ¶
type SearchResult struct { Title string VideoId string Channel string Length time.Duration Views int64 VerifiedArtist bool // contains filtered or unexported fields }
func GetAllResults ¶
func GetAllResults(ar string, tr string) ([]SearchResult, error)
Search for a track, and return an array of results. For optimal results, use ConvertSongAccurate().
func GetFirstResult ¶
func GetFirstResult(ar string, tr string) (SearchResult, error)
Search for a track, and return the first result. For optimal results, use ConvertSongAccurate().
type Song ¶
type Song struct { VideoId string Accuracy int SearchResult SearchResult }
func ConvertSongAccurate ¶
func ConvertSongAccurate(sd AccurateSongData) (Song, error)
Search for a song and return the most accurate result.
Click to show internal directories.
Click to hide internal directories.