videoinfo

package
v0.0.0-...-4f4ff30 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: Unlicense Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormatList

type FormatList []models.Format

func (FormatList) FindByItag

func (list FormatList) FindByItag(itagNo int) *models.Format

type VideoInfo

type VideoInfo struct {
	ID                  string
	Title               string
	Author              string
	Duration            time.Duration
	AllAvailableFormats FormatList
	Format              *models.Format
	FileFormat          string
}

func Fetch

func Fetch(ctx context.Context, c client.Client, id string) (*VideoInfo, error)

Fetch fetches video info metadata with a context

func (*VideoInfo) SelectFormat

func (v *VideoInfo) SelectFormat()

SelectFormat iterates over all available video formats and sets Format variable the most suitable one

Jump to

Keyboard shortcuts

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