Replaced deprecated download method

This commit is contained in:
ByteDream 2021-10-14 20:30:14 +02:00 committed by GitHub
parent 74e8810123
commit 18eac04320
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,7 +261,7 @@ func main() {
}
// download the format to the file
if err := format.Download(file, nil); err != nil {
if err := format.DownloadGoroutines(file, 4, nil); err != nil {
panic(err)
}
fmt.Printf("Downloaded %s with %s resolution and %.2f fps as %s\n", episode.Title, format.Video.Resolution, format.Video.FPS, file.Name())