Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Java - can not pass arguments/parameters to youtube-dl.exe #16730
Comments
|
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.06.14. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
I have been trying to use Java ProcessBuilder to execute youtube-dl with parameters.
I have not been able to pass more than one parameter to youtube. Tried to enter one parameter after another as this:
`for (int i = 0; i < links.length; i++) {
}`
But it only passed the first one, then said
Then I tried to pass it as one big command
String commands = "--extract-audio" + "--audio-format " + defaultAudioFormat + "--audio-quality " + aBitrate + "K";and i got the same result, but every command there
Adding spaces in quotes does not work.
Would you happen to know how can I get it to work?