Documentation ¶
Index ¶
- func SanitizeFilename(fileName string) string
- type Downloader
- func (dl *Downloader) Download(ctx context.Context, v *youtube.Video, format *youtube.Format, ...) error
- func (dl *Downloader) DownloadAudio(ctx context.Context, outputPath string, v *youtube.Video, ...) error
- func (dl *Downloader) DownloadComposite(ctx context.Context, outputFile string, v *youtube.Video, quality string, ...) error
- func (dl *Downloader) GetVideoWithFormat(videoID string, outputDir string) (*youtube.Video, *youtube.Format, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeFilename ¶
Types ¶
type Downloader ¶
Downloader offers high level functions to download videos into files
func GetDownloader ¶
func GetDownloader(outputDir string) *Downloader
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) DownloadAudio ¶
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.
func (*Downloader) GetVideoWithFormat ¶
Click to show internal directories.
Click to hide internal directories.