Mattias Wadman 042aba554c Use youtube-dl headers for own requests too
Might be some issues downloading images and subtiles if cookies are required etc
2019-11-01 00:02:07 +01:00
2019-10-29 01:02:39 +01:00
2019-07-23 21:39:07 +02:00
2019-07-23 21:39:07 +02:00
2019-07-23 21:39:07 +02:00
2019-08-11 09:50:20 +02:00

goutubedl

Go wrapper for youtube-dl. API documentation can be found at godoc.org.

See youtube-dl documentation for what is recommended to install in addition to youtube-dl.

Usage

result, err := goutubedl.New(context.Background(), URL, goutubedl.Options{})
downloadResult, err := result.Download(context.Background(), FormatID)
io.Copy(ioutil.Discard, downloadResult)
downloadResult.Close()

See goutubedl cmd tool or ydls for usage examples.

Description
Go wrapper for youtube-dl and yt-dlp
Readme MIT 478 KiB
Languages
Go 98.1%
Dockerfile 1.9%