Skip to content

Commit

Permalink
stderr from yt-dl to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
RythenGlyth committed Sep 11, 2024
1 parent 74ee2f9 commit 5b7c927
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ func downloadChapter(client *http.Client, datDir string, outputDir string, ytdlE
}

cmd := exec.Command(ytdlExec, "--embed-subs", "--all-subs", "-f", "bestvideo+bestaudio", chapterMetadata.Sources[0].Src, "-o", path.Join(outputDir, fmt.Sprintf("%03d-%s.mp4", chapter.Number, chapter.Title)))
cmd.Stderr = os.Stderr
err = cmd.Run()
if err != nil {
return err
Expand Down

0 comments on commit 5b7c927

Please sign in to comment.