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

[Feature request] : Add a -d option to store the current downloaded video to a specific directory #20502

Closed
sebma opened this issue Mar 29, 2019 · 4 comments

Comments

@sebma
Copy link

@sebma sebma commented Mar 29, 2019

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.03.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.03.18

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description of your issue, suggested solution and other information

Can you please add a -d option with a string argument to store the current downloaded video to a specific directory (that is different from the default directory which I have given with the -o DIR/%(title)s.%(ext) option) :

$ youtube-dl -d $myDIR/ $url

@sebma sebma changed the title [Feature request] : Add a -d swtich to store the current downloaded video to a specific directory [Feature request] : Add a -d option to store the current downloaded video to a specific directory Mar 29, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 29, 2019

What's the point of this? Just use this specific directory in -o argument.

@dstftw dstftw closed this Mar 29, 2019
@sebma
Copy link
Author

@sebma sebma commented Mar 29, 2019

@dstftw Here is the point : I believe each option of any console tool (such as youtube-dl) should be atomic :

   -o, --output TEMPLATE
          Output filename template, see the "OUTPUT TEMPLATE" for all  the
          info

-o should be used for filename pattern ONLY.

I always use the same filename pattern which I store in youtube-dl.conf for convenience purposes.

I don't want to type the following commands each time I want to store videos in different directories with the same video filename pattern :

$ youtube-dl -o"DIR1/%(title)s__%(format_id)s__%(id)s.%(ext)s" ...
and then another time :
$ youtube-dl -o"DIR2/%(title)s__%(format_id)s__%(id)s.%(ext)s" ...
and then another time :
$ youtube-dl -o"DIR3/%(title)s__%(format_id)s__%(id)s.%(ext)s" ...

This can become very laborious over time, don't think ?

I'm hoping you would reopen my feature request.

Jesus bless you.

@sebma
Copy link
Author

@sebma sebma commented Apr 2, 2019

@dstftw I'm sorry but your solution does not work :

$ youtube-dl -o tmp2/ http://www.youtube.com/watch?v=Fl50abzGYG4
[youtube] Fl50abzGYG4: Downloading webpage
[youtube] Fl50abzGYG4: Downloading video info webpage
[youtube] Fl50abzGYG4: Looking for automatic captions
[youtube] Fl50abzGYG4: Downloading MPD manifest
ERROR: unable to open for writing: [Errno 21] Is a directory: 'tmp2/'
@vinqin
Copy link

@vinqin vinqin commented Apr 11, 2019

Agree with @sebma. Please support this convenient feature.

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.