I’m sure some of you already using it like this but if not, this could be useful for you.
It creates a directory with the channel’s name, create sub-directories with the playlist name, it gives them a number and put them in an order, it can continue to download if you have to cancel it midway.
You can modify it to your needs.
Add this to your ~/.bashrc
or your favourite shell config.
alias yt='yt-dlp --yes-playlist --no-overwrites --download-archive ~/Downloads/yt-dlp/archive.txt -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" -o "~/Downloads/yt-dlp/%(uploader)s/%(playlist_title,single_playlist)s/%(playlist_index,00)s - %(title)s - [%(id)s].%(ext)s"'
You can even limit the download speed by adding this parameter: --limit-rate 640K
This example is for 5 Mb/s.
You really shouldn’t build these from scratch, but use existing time-tested configs, like
https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection/
Why not? Why not learn how to use a tool??
Because other people in the datahoarding community already spent a lot of time collaborating and finding the best config.
And now you think we have enough and don’t need more?
Strange way of thinking.
Actually I’m quite proud of my version but didn’t know about these at all. If I knew about this prior, I most likely wouldn’t try to build from scratch. Thanks for sharing.