diff --git a/internal/dl/ytdlp.go b/internal/dl/ytdlp.go index c7c401d..ade0764 100644 --- a/internal/dl/ytdlp.go +++ b/internal/dl/ytdlp.go @@ -283,8 +283,9 @@ func (c *Client) StartDownload(job *domain.DownloadJob, downloadDir string) (<-c outputPath := filepath.Join(downloadDir, job.ID+"_%(id)s.%(ext)s") args = append(args, "--output", outputPath) - // Use --newline so each progress line is newline-delimited in pipe - args = append(args, "--newline") + // --progress forces progress output in non-TTY (pipe) environments + // --newline uses \n instead of \r so bufio.Scanner can read line-by-line + args = append(args, "--progress", "--newline") // Language selection if specified if job.Language != "" {