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

Filename tokens failing #183

Open
JamesRBrown opened this issue Jun 29, 2021 · 3 comments · May be fixed by #205
Open

Filename tokens failing #183

JamesRBrown opened this issue Jun 29, 2021 · 3 comments · May be fixed by #205

Comments

@JamesRBrown
Copy link

It seems that the tokens for the -o / --output are failing.

In the provided example:

ytdl -o "{author.name} - {title}" "http://www.youtube.com/watch?v=_HSylqgVYQI"

The output filename is saved as:

{author.name} - {title}.mp4

I know the earlier versions of the utility didn't have this issue, but I was looking at the code, and it looks like a fair little bit has changed since I first downloaded ytdl back in April of 2018.

@newt0
Copy link

newt0 commented Jul 18, 2021

I have the same issue.

I thought it might be a variable problem, so I tried the following code, but it all failed.

ytdl -o "{title}" "http://www.youtube.com/watch?v=_HSylqgVYQI"
ytdl -o "{title}"http://www.youtube.com/watch?v=_HSylqgVYQI"
ytdl -o {title} http://www.youtube.com/watch?v=_HSylqgVYQI"
ytdl -o title http://www.youtube.com/watch?v=_HSylqgVYQI"
ytdl -o "title" http://www.youtube.com/watch?v=_HSylqgVYQI"

@newt0
Copy link

newt0 commented Jul 18, 2021

I thought it was a problem with the version of node.js because I was able to do it before.
So I switched the version of node.js to 16, 13, and 12 and did npm -g install ytdl in each of them.
But it didn't work in all environments.

@itzTheMeow
Copy link

You can bypass this with {videoDetails.title}. (until the pr is merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants