Documentation ¶
Index ¶
- type Stream
- type Youtube
- func (y *Youtube) FetchSongByURLs(url string) ([]*player.Song, error)
- func (y *Youtube) FetchSongsByIDs(guildID string, ids []int) ([]*player.Song, error)
- func (y *Youtube) FetchSongsByTitle(title string) ([]*player.Song, error)
- func (y *Youtube) FetchSongsByTitles(titles []string) ([]*player.Song, error)
- func (y *Youtube) FetchSongsByURLs(urls []string) ([]*player.Song, error)
- func (y *Youtube) GetAllSongsFromURL(url string) ([]*player.Song, error)
- func (y *Youtube) GetSongFromVideoURL(url string) (*player.Song, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Youtube ¶
type Youtube struct {
// contains filtered or unexported fields
}
func NewYoutube ¶
func NewYoutube() *Youtube
func (*Youtube) FetchSongByURLs ¶
FetchSongByURLs fetches song by its URL. Or songs if the initial song was part of playlist
func (*Youtube) FetchSongsByIDs ¶
FetchSongsByIDs fetches songs by their IDs from the history.
func (*Youtube) FetchSongsByTitle ¶
FetchSongsByTitle fetches song by its title from youtube. Or songs if the initial song was part of playlist
func (*Youtube) FetchSongsByTitles ¶
FetchSongsByTitles fetches songs by their titles from youtube.
func (*Youtube) FetchSongsByURLs ¶
FetchSongsByURLs fetches songs by their URLs.
func (*Youtube) GetAllSongsFromURL ¶
getAllSongsFromURL creates an array of Song instances from a YouTube playlist.
Click to show internal directories.
Click to hide internal directories.