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 number of videos in a Playlist? #4238
Comments
|
I don't know if this is what you want, but you can use jq for that: If that's now what you want, could you explain how do you want to get the length? |
|
Thanks, it Works! But, because I don't know how to save the resolution of a video into a variable, I do ths: Edu. |
|
The output has the following string - Collected This N is the number of videos in that playlist. |
Hi,
I'm writing a batch file to auto download videos just copying url to clipborad, but I need to know how many videos are in one playlist to make a loop (i'm making a loop to get video %(height)s for each video and save to a file to compare with the real height).
I've seen in the json file, that it's stored in the "n_entries" var.
Could you add a "--playlist-n_entries" option, or a "%(playlist_n_entries)s" output?
Thanks!