youtubedr

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(id string) error

func GetDownloader

func GetDownloader() *ytdl.Downloader

func GetVideoWithFormat

func GetVideoWithFormat(videoID string) (*youtube.Video, *youtube.Format, error)

Types

type PlaylistInfo

type PlaylistInfo struct {
	Title  string
	Author string
	Videos []VideoInfo
}

type VideoFormat

type VideoFormat struct {
	Itag          int
	FPS           int
	VideoQuality  string
	AudioQuality  string
	AudioChannels int
	Language      string
	Size          int64
	Bitrate       int
	MimeType      string
}

Define two new struct in local scope

type VideoInfo

type VideoInfo struct {
	ID          string
	Title       string
	Author      string
	Duration    string
	Description string
	Formats     []VideoFormat
}

Jump to

Keyboard shortcuts

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