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

Set Download destination Directory? #974

Closed
leegold-zz opened this issue Jul 2, 2013 · 6 comments
Closed

Set Download destination Directory? #974

leegold-zz opened this issue Jul 2, 2013 · 6 comments

Comments

@leegold-zz
Copy link

@leegold-zz leegold-zz commented Jul 2, 2013

Could anyone give me a simple example of how to set the download destination directory? I think the -o is used but I can not see how to do it. It would be for windows system, please keep the example simple. Thank you sincerely.

@phihag
Copy link
Contributor

@phihag phihag commented Jul 2, 2013

If you want to download to the destination C:/Users/leegold/Downloads/ (and keep the original video name format), try

youtube-dl -o 'C:/Users/leegold/Downloads/%(title)s-%(id)s.%(ext)s'
@phihag phihag closed this Jul 2, 2013
@rudolphos
Copy link

@rudolphos rudolphos commented Oct 5, 2016

This doesn't work for me..

It somehow downloads everything with messed up file names.
They look like this:

(title)s ((ext)s
(title)s ((ext)s.f136.part
(title)s ((ext)s.en.vtt

This is my script, saved as .bat.

set /p input="Input URL: "
youtube-dl -ci --write-thumbnail --sub-format ass/srt/best --write-auto-sub -f bestvideo+bestaudio/best --output "C:\Users\COMPUTER\Desktop\ytdl\%(uploader)s - %(title)s (%(id)s).%(ext)s" %input%
@rudolphos
Copy link

@rudolphos rudolphos commented Oct 6, 2016

Everything working now, percentage signs were the problem.

@CodeKraft
Copy link

@CodeKraft CodeKraft commented Aug 20, 2019

What about linux?

I have been searching for an example that simply allows you to select a folder to dump all downloads to, however there is this thing with weird strings.

All I want to do is to save to /home/computer/videos/downloaded and I am not interested in any names or things other than what the downloaded name is. I like it simple.

So do I add -o /home/computer/videos/downloaded
to the command line to have all the files downloaded in the batch file in to that location?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 20, 2019

-o is not a directory it's an output template.

@ytdl-org ytdl-org locked and limited conversation to collaborators Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

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