47b4e2656715a069dec2d2362fa4e149e771d6c6
--ignore-errors still return error message and exit code != 0 so workaround is to assume things went ok if we get some json on stdout Filter out failed entries for playlists
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.
Languages
Go
98.1%
Dockerfile
1.9%