sources

package
v0.0.0-...-7857e79 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct{}

func NewStream

func NewStream() *Stream

func (*Stream) FetchStreamsByURLs

func (s *Stream) FetchStreamsByURLs(urls []string) ([]*player.Song, error)

type Youtube

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

func NewYoutube

func NewYoutube() *Youtube

func (*Youtube) FetchSongByURLs

func (y *Youtube) FetchSongByURLs(url string) ([]*player.Song, error)

FetchSongByURLs fetches song by its URL. Or songs if the initial song was part of playlist

func (*Youtube) FetchSongsByIDs

func (y *Youtube) FetchSongsByIDs(guildID string, ids []int) ([]*player.Song, error)

FetchSongsByIDs fetches songs by their IDs from the history.

func (*Youtube) FetchSongsByTitle

func (y *Youtube) FetchSongsByTitle(title string) ([]*player.Song, error)

FetchSongsByTitle fetches song by its title from youtube. Or songs if the initial song was part of playlist

func (*Youtube) FetchSongsByTitles

func (y *Youtube) FetchSongsByTitles(titles []string) ([]*player.Song, error)

FetchSongsByTitles fetches songs by their titles from youtube.

func (*Youtube) FetchSongsByURLs

func (y *Youtube) FetchSongsByURLs(urls []string) ([]*player.Song, error)

FetchSongsByURLs fetches songs by their URLs.

func (*Youtube) GetAllSongsFromURL

func (y *Youtube) GetAllSongsFromURL(url string) ([]*player.Song, error)

getAllSongsFromURL creates an array of Song instances from a YouTube playlist.

func (*Youtube) GetSongFromVideoURL

func (y *Youtube) GetSongFromVideoURL(url string) (*player.Song, error)

GetSongFromVideoURL creates a new Song instance using the provided YouTube URL.

Jump to

Keyboard shortcuts

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