handle -P or --paths yt-dlp flag

This commit is contained in:
2024-01-26 11:36:39 +01:00
parent 15766bd016
commit d3371ed64c

View File

@@ -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))
}