💾 Archived View for godocs.io › github.com › kkdai › youtube › v2 › downloader captured on 2024-05-26 at 14:59:55. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-12)
-=-=-=-=-=-=-
import "github.com/kkdai/youtube/v2/downloader"
func SanitizeFilename(fileName string) string
type Downloader struct { youtube.Client OutputDir string // optional directory to store the files }
Downloader offers high level functions to download videos into files
func (dl *Downloader) Download(ctx context.Context, v *youtube.Video, format *youtube.Format, outputFile string) error
Download : Starting download video by arguments.
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.