💾 Archived View for godocs.io › github.com › kkdai › youtube › v2 › downloader captured on 2024-05-10 at 11:53:18. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-03-21)

➡️ Next capture (2024-05-12)

🚧 View Differences

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

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, language string) error

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

Details

Version: v2.10.1 (latest)

Platform: linux/amd64

Imports: 11 packages

Refresh now

Back to home

Search