From 766b4075ddfc5e2073307d028157d0beb80f7769 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Sun, 20 Aug 2023 14:50:42 +0300 Subject: [PATCH] downloader: correct download func to not set title to stdout --- downloader.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/downloader.go b/downloader.go index a8fd0c6..f9e1465 100644 --- a/downloader.go +++ b/downloader.go @@ -124,17 +124,13 @@ func ytdlpDownload( ctx *DownloadCtx, downloadCtxs chan *DownloadCtx, errs chan *DownloadCtx) { cmd := exec.Command(YT_DLP, ctx.link) - stdout, err := cmd.Output() + _, err := cmd.Output() if err != nil { ctx.err = &err ctx.status = JOB_STATUS_ERR errs <- ctx return } - title := string(stdout) - title = strings.TrimSpace(title) - ctx.title = title - downloadCtxs <- ctx }