formats

package
v3.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format struct {
	Format_id   string  `json:"format_id"`
	Format_note string  `json:"format_note"`
	FPS         float32 `json:"fps"`
	Resolution  string  `json:"resolution"`
	VCodec      string  `json:"vcodec"`
	ACodec      string  `json:"acodec"`
	Size        float32 `json:"filesize_approx"`
	Language    string  `json:"language"`
}

A skimmed yt-dlp format node

type Metadata

type Metadata struct {
	Type      string     `json:"_type"`
	Formats   []Format   `json:"formats"`
	Best      Format     `json:"best"`
	Thumbnail string     `json:"thumbnail"`
	Title     string     `json:"title"`
	URL       string     `json:"url"`
	Entries   []Metadata `json:"entries"` // populated if url is playlist
}

Used to deser the formats in the -J output

func ParseURL

func ParseURL(url string) (*Metadata, error)

func (*Metadata) IsPlaylist

func (m *Metadata) IsPlaylist() bool

Jump to

Keyboard shortcuts

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