Skip to content

Commit

Permalink
enable stderr from child processes
Browse files Browse the repository at this point in the history
  • Loading branch information
oleggator authored Aug 6, 2023
1 parent 894ae96 commit 92c212c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ytdlp/ytdlp.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (fr *FetchResult) Download(ctx context.Context, w io.WriteCloser) error {
}
ffmpegCmd.Stdin = ffmpegStdin
ffmpegCmd.Stdout = w
ffmpegCmd.Stderr = io.Discard
// ffmpegCmd.Stderr = io.Discard

ytDlpCmd := exec.CommandContext(
ctx,
Expand All @@ -90,7 +90,7 @@ func (fr *FetchResult) Download(ctx context.Context, w io.WriteCloser) error {
}
ytDlpCmd.Stdin = bytes.NewReader(fr.rawInfo)
ytDlpCmd.Stdout = ytDlpStdout
ytDlpCmd.Stderr = io.Discard
// ytDlpCmd.Stderr = io.Discard

if err := ffmpegCmd.Start(); err != nil {
return err
Expand Down

0 comments on commit 92c212c

Please sign in to comment.