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 can I get a downloaded file in the format of OriginalYoutubeVideoTitle_MyOwnAdditionalTitle.mp4? #5892

Closed
hub2git opened this issue Jun 4, 2015 · 1 comment

Comments

@hub2git
Copy link
Contributor

@hub2git hub2git commented Jun 4, 2015

What is the exact command I should use when I want to add a few words of my own to the original filename?
For instance,
If I do
youtube-dl "https://www.youtube.com/watch?v=h--AbCdbbEWo", my folder will contain a file like
"Amazing Jellyfish in Palau.mp4"

I'd like instead to get a filename like
"Amazing Jellyfish in Palau_ht_Bob_Smith.mp4"
(in case you're curious, "ht_Bob_Smith" is my reminder that my friend Bob is the one who suggested I watch this video).

I read the description for the "-o" option, but, sorry to say, I don't understand.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jun 4, 2015

I can't open the url you posted, but youtube-dl 'https://www.youtube.com/watch?v=h--AbCdbbEWo' -o '%(title)s_ht_Bob_Smith.%(ext)s' should work. The %(____)s are replace by the correct info extracted by youtube-dl.

@jaimeMF jaimeMF closed this Jun 4, 2015
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.