node-ytdl
node-ytdl copied to clipboard
Filename tokens failing
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.
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"
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.
You can bypass this with {videoDetails.title}
. (until the pr is merged)