handle -P or --paths yt-dlp flag
This commit is contained in:
@@ -101,7 +101,7 @@ func (p *Process) Start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if user asked to manually override the output path...
|
// 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, "-o")
|
||||||
params = append(params, fmt.Sprintf("%s/%s", out.Path, out.Filename))
|
params = append(params, fmt.Sprintf("%s/%s", out.Path, out.Filename))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user