Add optional yt-dlp output to stderr
This commit is contained in:
parent
764e0ac0d8
commit
54b30f80fb
1
dl.go
1
dl.go
@ -32,6 +32,7 @@ func (d *Downloader) downloadURL(dlCtx context.Context, url string) (rr *ReReadC
|
|||||||
result, err := goutubedl.New(dlCtx, url, goutubedl.Options{
|
result, err := goutubedl.New(dlCtx, url, goutubedl.Options{
|
||||||
Type: goutubedl.TypeSingle,
|
Type: goutubedl.TypeSingle,
|
||||||
DebugLog: goYouTubeDLLogger{},
|
DebugLog: goYouTubeDLLogger{},
|
||||||
|
// StderrFn: func(cmd *exec.Cmd) io.Writer { return io.Writer(os.Stdout) },
|
||||||
MergeOutputFormat: "mkv", // This handles VP9 properly. yt-dlp uses mp4 by default, which doesn't.
|
MergeOutputFormat: "mkv", // This handles VP9 properly. yt-dlp uses mp4 by default, which doesn't.
|
||||||
SortingFormat: "res:720", // Prefer videos no larger than 720p to keep their size small.
|
SortingFormat: "res:720", // Prefer videos no larger than 720p to keep their size small.
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user