sources

package
v0.0.0-...-ea66291 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 13 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{}

Stream is a struct that encapsulates the Stream functionality.

func NewStream

func NewStream() *Stream

NewStream creates a new instance of stream.

func (*Stream) FetchStreamsByURLs

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

FetchStreamsByURLs fetches stream URLs into Song struct.

type Youtube

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

Youtube is a struct that encapsulates the YouTube functionality.

func NewYoutube

func NewYoutube() *Youtube

NewYoutube creates a new instance of kkdai_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) 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