mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Replaced deprecated download method
This commit is contained in:
parent
74e8810123
commit
18eac04320
1 changed files with 1 additions and 1 deletions
|
|
@ -261,7 +261,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// download the format to the file
|
// 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)
|
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())
|
fmt.Printf("Downloaded %s with %s resolution and %.2f fps as %s\n", episode.Title, format.Video.Resolution, format.Video.FPS, file.Name())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue