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

How do I download to a specific Directory? #3561

Closed
zoutiyx opened this issue Aug 21, 2014 · 4 comments
Closed

How do I download to a specific Directory? #3561

zoutiyx opened this issue Aug 21, 2014 · 4 comments

Comments

@zoutiyx
Copy link

@zoutiyx zoutiyx commented Aug 21, 2014

Hi,
I have read the help and I have tried quite a bit but I cant get youtube-dl to download to a specific directory.

How do I change that? can't find the youtube-dl.conf file in the /etc or /.config

Based on what I read it can be added with -o that method would be appreciated too.
Here is what I have:

sudo youtube-dl -citk --max-quality FORMAT --extract-audio --audio-format mp3 https://www.youtube.com/user/DiscoverTheVibes/videos trying to download to /media/ubuntu/UUI/dtv

Thanks for the great program.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 21, 2014

Umm, first of all, your existing options don't make much sense. --max-quality FORMAT is not a useful option and can be left out. The -t option is deprecated and actually harmful here because it already specifies a template. And -c should rarely be passed in (by default, youtube-dl will pick what's best, and that's usually continuing), why are you adamant about continuing? You should also never run youtube-dl with sudo unless you are updating - that is dangerous and may fail in the future.

After you have removed these options, you can simply specify an output template with the -o option, and that output template can contain directories as you wish. So, try something like

youtube-dl -ikx --audio-format mp3 https://www.youtube.com/user/DiscoverTheVibes/video \
-o '/media/ubuntu/UUI/dtv/%(title)s-%(id)s.%(ext)s'

If you want, you can create a file (either /etc/youtube-dl.conf, or, recommended, ~/.config/youtube-dl.conf) and write any of those options into that file.

@phihag phihag closed this Aug 21, 2014
@zoutiyx
Copy link
Author

@zoutiyx zoutiyx commented Aug 21, 2014

Thank you so much. See, this is why I came here to you.

This format: sudo youtube-dl -citk --max-quality FORMAT --extract-audio --audio-format mp3 I got from a site online. Guess it's misleading everyone or that was the standard at the time of posting.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 21, 2014

Can you give me a link to that site? I can't find it. In any case, it is definitly not associated with the youtube-dl project.

@zoutiyx
Copy link
Author

@zoutiyx zoutiyx commented Aug 21, 2014

Certainly not associated with the youtube-dl project. Here it is: Xmodulo

@zoutiyx zoutiyx changed the title How to I download to a specific Directory? How do I download to a specific Directory? Aug 21, 2014
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.