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

output template doesn't work on Win32 #5184

Closed
swapjim opened this issue Mar 12, 2015 · 2 comments
Closed

output template doesn't work on Win32 #5184

swapjim opened this issue Mar 12, 2015 · 2 comments

Comments

@swapjim
Copy link

@swapjim swapjim commented Mar 12, 2015

On Linux, I'll do this:

youtube-dl https://www.youtube.com/watch?v=BaW_jenozKc -i -w --restrict-filenames -o "%(upload_date)s-%(id)s-%(title)s.%(ext)s"

And I'll get a file that's named:

20121002-BaW_jenozKc-youtube-dl_test_video.mp4

But on Win32, the same command gives me a file named:

(id)s-(ext)s

What am I doing wrong?

@phihag
Copy link
Contributor

@phihag phihag commented Mar 12, 2015

As mentioned in our issue reporting guideline, please post the entire output you get when you add -v.

It works fine for me under Windows:

windows-percent

Are you by any chance using a batch script? If so, you may need to escape percent signs.

@swapjim
Copy link
Author

@swapjim swapjim commented Mar 12, 2015

As mentioned in our issue reporting guideline, please post the entire output you get when you add -v.

Oh man, I missed that! Sorry.

Yes, I was invoking youtube-dl from a batch script and the percent characters needed escaping by using double percent characters. This one works:

youtube-dl -v https://www.youtube.com/watch?v=BaW_jenozKc -i -w --restrict-filenames -o "%%(upload_date)s-%%(id)s-%%(title)s.%%(ext)s"

Thanks!

@jaimeMF jaimeMF closed this Mar 12, 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
3 participants
You can’t perform that action at this time.