From 92c212c943680c640987e9b7a3192902b3b76114 Mon Sep 17 00:00:00 2001 From: Oleg Utkin Date: Sun, 6 Aug 2023 14:19:52 +0200 Subject: [PATCH] enable stderr from child processes --- ytdlp/ytdlp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ytdlp/ytdlp.go b/ytdlp/ytdlp.go index 59cd7d2..12d2ff3 100644 --- a/ytdlp/ytdlp.go +++ b/ytdlp/ytdlp.go @@ -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, @@ -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