Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static custom yt-dlp args --paths #130

Open
pythonxy opened this issue Jan 19, 2024 · 9 comments
Open

Static custom yt-dlp args --paths #130

pythonxy opened this issue Jan 19, 2024 · 9 comments

Comments

@pythonxy
Copy link

Hi,

is there a way to set --paths as static custom argument for every download? Trying to move the finished file to different folder.

@marcopeocchi
Copy link
Owner

hello @pythonxy,

you might try adding a "template" with --path as value.
They're located on the blue speed dial on the bottom right.

@pythonxy
Copy link
Author

hello @pythonxy,

you might try adding a "template" with --path as value. They're located on the blue speed dial on the bottom right.

thanks for replying. yep template made it faster for arguments.
However, I tried to set -P /downloads -P temp:/media/tmp but the temp files are always show up in /downloads instead of /media/tmp. I am not sure if the original argument -o /downloads/%(title)s.%(ext)s is doing something. Hope you can help

@marcopeocchi
Copy link
Owner

-o is indeed interfering with your arguments. I'll look into that.

@marcopeocchi
Copy link
Owner

Corrected behavior in d3371ed.

@pythonxy
Copy link
Author

Corrected behavior in d3371ed.

thanks for the update. Maybe I am wrong, is the Dockerfile also need to be updated to remove the -o option from entry point?

@marcopeocchi
Copy link
Owner

It shouldn't be necessary, it just tell the rpc where to save files if nothing else is specified.

@pythonxy
Copy link
Author

pythonxy commented Jan 28, 2024

I rebuilt the image by removing the -o option from Dockerfile entry point and confirmed now it is working as expected. File will download in /media/tmp folder and will be move to /downloads after it finished.

@dj3500
Copy link
Contributor

dj3500 commented May 13, 2024

Thank you for making this software available! I will take the liberty of commenting on this issue, as mine seems to be very similar.

I'm trying to get this to work and am unable - the files always get saved in the --out directory regardless of what I provide after the -P flag, which is essentially ignored. In d3371ed, shouldn't the check be carried out on p.Params rather than params?

(I have also tried the "custom path" feature, but that is rather annoying - a dropdown appears, but it has only one suggested value, which is the --out directory, and doesn't accept anything other than that or an empty string...)

@marcopeocchi
Copy link
Owner

Hi @dj3500,

At the first glance it seems that the check has to be done on p.Params as you said, I'll take a look into that.
As for the "custom path" feature, it is indeed quite skectched and it's better provide both dropdown and a free text field to input the path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants