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 option for getting number of videos of a channel/user #5727
Comments
|
Using the json output with jq: $ youtube-dl 'https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re' -J --flat-playlist | jq '.entries | length'
3 |
|
Not a single playlist. All uploads by user. |
|
The same command works: $ youtube-dl 'https://www.youtube.com/user/TheLinuxFoundation' -J --flat-playlist | jq '.entries | length'
693 |
|
Is it possible to create some short code ? Like --nov (number of videos) ? |
|
If it can be easily done by chaining two commands, I don't think it's really needed. Why isn't enough for you? |
|
Would be convenient .Who wants to type long command every time ? . Sorry if I sound rude. It's justa a suggestion . |
|
It gives an error. jq is not recognized as an internal or external command. |
|
My main reason agains adding a new options is that we would have to add an option for every single feature that people need. On the other side when you build something generic like the json output you give complete flexibility for what you can do and you don't need to modify youtube-dl for most of things (there will of course always be features that require new options).
You have to install jq |
|
Okay. Sorry. Actually I currently use the -F option . It downloads all the pages. Then gives like " Download video 1 or 500".I see the end number and close the window .If it was possible to store the "500" into some variable then output it. But it is a slow method. But doesn't require external software. ( Sorry I am not a coder . Method may sound stupid ). |
|
Actually I use this method for most sites. I regularly download full youtube channels and vine channel. It works for vine too. |
Is there any way to check how many videos has a channel/user uploaded ?