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

Specifying output directory #1140

Closed
oschrenk opened this issue Jul 27, 2013 · 2 comments
Closed

Specifying output directory #1140

oschrenk opened this issue Jul 27, 2013 · 2 comments

Comments

@oschrenk
Copy link

@oschrenk oschrenk commented Jul 27, 2013

Is it possible to specify an output directory?

I tried the -o option, but it specifies the whole output file template, whereas I only want to specify the output directory but otherwise leaving everything to default.

My usecase is that I want every video to be put into ~/Downloads regardless of my working directory. I tried specifying a template ~/Downloads/%(title)s-%(id)s.%(ext)s and $HOME/Downloads/%(title)s-%(id)s.%(ext)s but bash and environment variables don't get expanded.

@rg3
Copy link
Collaborator

@rg3 rg3 commented Jul 27, 2013

Try something like:

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

or

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

It's a matter of understanding shell quotation marks.

@oschrenk oschrenk closed this Jul 27, 2013
@oschrenk
Copy link
Author

@oschrenk oschrenk commented Jul 27, 2013

Doesn't work when used in youtube-dl.conf.

OS X 10.8.4

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
2 participants
You can’t perform that action at this time.