Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeFilename ¶
Types ¶
type Downloader ¶
type Downloader struct { youtube.Client OutputDir string // optional directory to store the files }
Downloader offers high level functions to download videos into files
func (*Downloader) Download ¶
func (dl *Downloader) Download(ctx context.Context, v *youtube.Video, format *youtube.Format, outputFile string) error
Download : Starting download video by arguments.
func (*Downloader) DownloadWithHighQuality ¶
func (dl *Downloader) DownloadWithHighQuality(ctx context.Context, outputFile string, v *youtube.Video, quality string) error
DownloadWithHighQuality : Starting downloading video with high quality (>720p).
Click to show internal directories.
Click to hide internal directories.