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

Remove video id from default output name #4071

Closed
J316 opened this issue Oct 31, 2014 · 6 comments
Closed

Remove video id from default output name #4071

J316 opened this issue Oct 31, 2014 · 6 comments

Comments

@J316
Copy link

@J316 J316 commented Oct 31, 2014

When downloading videos the default output name should be TITLE.EXT, without all that alphanumeric string of the video id.

@naglis
Copy link
Collaborator

@naglis naglis commented Oct 31, 2014

You can achieve that by using the -o, --output option (more info), for example:

youtube-dl -o '%(title)s.%(ext)s' <URL>

To use the same template all the time and save some typing, put it in your configuration file.

As for becoming the default template for youtube-dl - you did not specify a reason, why it should become the default, where as the current default template serves at least two purposes:

  • identify a video if there are two or more videos with the same title;
  • let's you find (to some extent) the video later, should you want to do that.
@phihag
Copy link
Contributor

@phihag phihag commented Oct 31, 2014

Note that not all extractors generate good titles (in particular, facebook videos often come without any or any useful titles at all). Therefore, I am hesitant to make the proposed change. I'll leave this issue open for a week to collect opinions from other users and developers. Additionally, I personally enjoy being able to quickly find where a video I downloaded (and e.g. removed by accident) is from.

@J316
Copy link
Author

@J316 J316 commented Oct 31, 2014

I know I can do that, but since the video ID is something 99% of users doesn't need it should be disabled by default and the default output should be TITLE.EXT

@phihag
Copy link
Contributor

@phihag phihag commented Oct 31, 2014

Can you provide a statistic for the 99% number? So far, we have three people uttering their preferences in this issue report, and 1/3 = 33% does not want the id ;)

@J316
Copy link
Author

@J316 J316 commented Oct 31, 2014

Just tried to put my two cents in, the tool is good. Do whatever you like.

@dstftw dstftw closed this Apr 16, 2016
@p0wnage
Copy link

@p0wnage p0wnage commented Aug 23, 2017

I too would like to see youtube-dl remove the ID from the name after download as well. This has been the only annoyance if you can even call it that about youtube-dl. I like to have a clean file name when I browse directory it makes finding the correct video that much easier. I know this can be achieved with the command youtube-dl -o '%(title)s.%(ext)s' <URL> but thats hard to remember in a pinch unless you add it to your .bashrc. Anyways thank's for all the hard work and giving us such a great tool it's much appreciated.

@ytdl-org ytdl-org locked and limited conversation to collaborators Aug 24, 2017
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
5 participants
You can’t perform that action at this time.