This commit is contained in:
Mattias Wadman
2019-07-22 09:08:59 +02:00
commit 88fc6c8d7a
9 changed files with 776 additions and 0 deletions

20
README.md Normal file
View File

@ -0,0 +1,20 @@
## goutubedl
Go wrapper for [youtube-dl](https://github.com/ytdl-org/youtube-dl).
[API Documentation](https://godoc.org/github.com/wader/goutubedl) can be found godoc.
See [youtube-dl documentation](https://github.com/ytdl-org/youtube-dl#do-i-need-any-other-programs)
for what is recommended to install in addition to youtube-dl.
### Usage
```go
result, err := goutubedl.New(context.Background(), URL, goutubedl.Options{})
downloadResult, err := result.Download(context.Background(), FormatID)
io.Copy(ioutil.Discard, downloadResult)
dr.Close()
```
See [goutubedl cmd tool](cmd/goutubedl/main.go) or [ydls](https://github.com/wader/ydls)
for usage examples.