💾 Archived View for godocs.io › github.com › kkdai › youtube › v2 › downloader captured on 2023-09-28 at 17:07:10. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-11-04)

-=-=-=-=-=-=-

package downloader - github.com/kkdai/youtube/v2/downloader - godocs.io

import "github.com/kkdai/youtube/v2/downloader"

Functions

func SanitizeFilename

func SanitizeFilename(fileName string) string

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) DownloadComposite

func (dl *Downloader) DownloadComposite(ctx context.Context, outputFile string, v *youtube.Video, quality string, mimetype string) error

DownloadComposite : Downloads audio and video streams separately and merges them via ffmpeg.

Details

Version: v2.9.0 (latest)

Platform: linux/amd64

Imports: 11 packages

Refresh now

Back to home

Search