ytchannel

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidChannelIdentifier = errors.New("invalid channel identifier string, you should either provide a handle (starting with '@') or an ID (starting with 'UC')")
View Source
var ErrYtInitialDataNotFound = errors.New("could not find ytInitialData")
View Source
var HTTPClient = http.DefaultClient

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ID      string
	Name    string
	Handle  string
	Avatars []*Thumbail
	Banners []*Thumbail
}

func GetYoutubeChannel

func GetYoutubeChannel(ctx context.Context, handle string) (ch *Channel, err error)

type Thumbail

type Thumbail struct {
	URL    string `json:"url"`
	Width  int    `json:"width"`
	Height int    `json:"height"`
}

Jump to

Keyboard shortcuts

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