Handle errors at download better

Related to #173
This commit is contained in:
Mattias Wadman
2024-03-13 17:28:49 +01:00
parent 95b1142af6
commit 8b5d2141e0
3 changed files with 62 additions and 10 deletions

View File

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