utube

package
v0.0.0-...-fbd6d60 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSongTooLong = errors.New("video too long, assume this a troll")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	*youtube.Client
	// contains filtered or unexported fields
}

func New

func New(songDirectory string) *Client

func (*Client) GetSong

func (c *Client) GetSong(ctx context.Context, link string) (*Song, error)

func (*Client) GetSongTitle

func (c *Client) GetSongTitle(link string) (string, error)

type Song

type Song struct {
	io.Reader
	Video *youtube.Video
}

func (*Song) Close

func (s *Song) Close() error

Jump to

Keyboard shortcuts

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