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

Local config file doesn't use environment variables #1720

Closed
oschrenk opened this issue Nov 4, 2013 · 2 comments
Closed

Local config file doesn't use environment variables #1720

oschrenk opened this issue Nov 4, 2013 · 2 comments

Comments

@oschrenk
Copy link

@oschrenk oschrenk commented Nov 4, 2013

I want to write every video to the same output directory. I put

-o "$HOME/Downloads/%(title)s-%(id)s.%(ext)s"

but instead of writing to ~/Downloads/ files are written to <cwd>/$HOME/Downloads. It seems that environment variables are not expanded.

Refs #1140

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 4, 2013

Since #1639 was closed, you can use "~/Downloads/%(title)s-%(id)s.%(ext)s"in the config file and it will be replace with your home directory.

@phihag
Copy link
Contributor

@phihag phihag commented Nov 4, 2013

Since youtube-dl is not a shell script, it is not really feasible for it to expand environment variables. However, like many programs, it does expand tilde user names, as @jaimeMF suggested.

@phihag phihag closed this Nov 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.