Fix deprecations and typos

This commit is contained in:
Mattias Wadman
2024-03-12 00:56:56 +01:00
parent 396be61f8d
commit 8dad7bee96
3 changed files with 17 additions and 17 deletions

View File

@ -7,6 +7,7 @@ import (
"io"
"log"
"os"
"os/exec"
"github.com/wader/goutubedl"
)
@ -24,7 +25,7 @@ func main() {
result, err := goutubedl.New(
context.Background(),
flag.Arg(0),
goutubedl.Options{Type: optType, DebugLog: log.Default()},
goutubedl.Options{Type: optType, DebugLog: log.Default(), StderrFn: func(cmd *exec.Cmd) io.Writer { return os.Stderr }},
)
if err != nil {
log.Fatal(err)