yt

package
v0.0.0-...-8475036 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaylistClient

type PlaylistClient struct {
	YoutubePlaylistClient youtubeiface.YoutubePlaylistServiceAPI
}

PlaylistClient represents the collection of data needed to fullfill boombot's youtube functionality

func NewYoutubePlaylistClient

func NewYoutubePlaylistClient(pls youtubeiface.YoutubePlaylistServiceAPI) *PlaylistClient

NewYoutubePlaylistClient returns a pointer to a new YtClient

func (*PlaylistClient) GetPlaylist

func (c *PlaylistClient) GetPlaylist(arg string) ([]string, error)

GetPlaylist accepts a playlist url and returns a Slice containing the url's of each video in the playlist

func (*PlaylistClient) SearchAndDownload

func (c *PlaylistClient) SearchAndDownload(arg string) (string, error)

SearchAndDownload returns a string search query based off the provided play command arguments

type VideoClient

type VideoClient struct {
	YoutubeVideoClient youtubeiface.YoutubeVideoDetailsAPI
}

func (*VideoClient) GetVideoDetails

func (c *VideoClient) GetVideoDetails(id string)

type VideoClientTest

type VideoClientTest struct {
	YoutubeVideoDetails youtubeiface.YoutubeVideoDetailsAPI
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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