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.
Add support for printing the basic youtube URL #4445
Comments
|
|
|
Ahh, I wasn't clear about that was I. I meant specifically for the |
|
You can use jq for that: $ youtube-dl ytsearch2:python -j | jq .webpage_url
"https://www.youtube.com/watch?v=tKTZoB2Vjuk"
"https://www.youtube.com/watch?v=ohr6O78jGzs" |
Using the
--get-url(or-g) option returns an incredibly long URL that adds significantly more data than is necessary. It would be nice to have an option that prints the standard "youtube.com/watch?v=$id". Any interest in adding this (I cannot imagine it would be too hard to add since it would essentially just be prepending the basic address to the standard output of--get-id)?