From d3371ed64c2e74a9d2e101256ea1ffedba1ffc97 Mon Sep 17 00:00:00 2001 From: marcobaobao Date: Fri, 26 Jan 2024 11:36:39 +0100 Subject: [PATCH] handle -P or --paths yt-dlp flag --- server/internal/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/process.go b/server/internal/process.go index 6281c11..2421d9d 100644 --- a/server/internal/process.go +++ b/server/internal/process.go @@ -101,7 +101,7 @@ func (p *Process) Start() { } // if user asked to manually override the output path... - if !slices.Includes(params, "-P") { + if !(slices.Includes(params, "-P") || slices.Includes(params, "--paths")) { params = append(params, "-o") params = append(params, fmt.Sprintf("%s/%s", out.Path, out.Filename)) }