Include playlist description and view count when using youtube-dl with `--flat-playlist -J` on a YouTube playlist
See original GitHub issueChecklist
- I’m reporting a feature request
- I’ve verified that I’m running youtube-dl version 2021.06.06
- I’ve searched the bugtracker for similar feature requests including closed ones
Description
I have been trying to find a way to quickly get information and video URLs/titles from a YouTube playlist, so far I have found that using youtube-dl <playlist URL> -J --flatplaylist is the closest to what I want, returning a list of all videos as well as the uploader of the playlist and the playlist name.
However, it would be extremely useful if it could also return even more information about the playlist, like the playlist’s Description & view count.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
youtube-dl; How download ONLY the playlist, NOT the files ...
Try using this command: youtube-dl -j --flat-playlist "https://<yourYoutubePlaylist>" | jq -r '.id' | sed 's_^_https://youtu.be/_' > result.
Read more >youtube-dl/README.md at master - GitHub
Command-line program to download videos from YouTube.com and other video sites - youtube-dl/README.md at master · ytdl-org/youtube-dl.
Read more >Generate list of videos (--flat-playlist) : r/youtubedl - Reddit
I want to generate a list of all of videos in a playlist, I found the option --flat-playlist in the Readme. It starts...
Read more >How Does YouTube Count Playlist Views? - TubeRanker
YouTube counts playlist views differently than video views. Finding the number of views a playlist has is easy, but understanding how it got ......
Read more >Efficiently get every video of every playlist of a channel
If you only manipulate your YouTube channel through your script then you can keep track of current playlists' videos state.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I have made pull request #30161 with the changes you have shown, and the changes I made
Thank you for your response showing the solution for the missing playlist description.
On the matter of obtaining extra metadata like
view_count, I found that they are stored inside:So, by making the following changes, I found how to include the
view_countand thelast_updateddate in the output:Then:
->