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.
--get-X option order is ignored #4506
Comments
|
Indeed, the only reason why we allow multiple |
|
actually one-value-per-line output is much easier to handle in bash and other languages that don't have built-in json support. that's why i didn't use |
|
You can use jq for that: $ youtube-dl 'http://www.youtube.com/watch?v=BaW_jenozKc' -j | jq -r '[.id, .title] | join("\n")'
BaW_jenozKc
youtube-dl test video "'/\ä |
|
from the point of view of |
i'm using a command like this:
there are three
--get-Xoptions and soyoutube-dloutputs three lines per video. but the order of these lines seems predefined and doesn't depend on the order of the options. and this predefined order isn't mentioned in the docs so i can't count on it staying the same.