ytdlp

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(ctx context.Context, url, to string) error

Types

type Date

type Date struct {
	time.Time
}

func (*Date) MarshalJSON

func (d *Date) MarshalJSON() ([]byte, error)

func (*Date) Scan

func (d *Date) Scan(value any) error

Scan implements the sql.Scanner interface

func (*Date) UnmarshalJSON

func (d *Date) UnmarshalJSON(data []byte) error

func (Date) Value

func (d Date) Value() (driver.Value, error)

Value implements the driver.Valuer interface

type VideoMetadata

type VideoMetadata struct {
	ID             string `json:"id"`
	Title          string `json:"title"`
	Thumbnail      string `json:"thumbnail"`
	DurationString string `json:"duration_string"`
	UploadDate     Date   `json:"upload_date"`
	URL            string `json:"url" gorm:"uniqueIndex"`
}

func Metadata

func Metadata(ctx context.Context, url string) (*VideoMetadata, error)

Jump to

Keyboard shortcuts

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