This tool is meant for personal use. Respect copyright and Youtube Terms of Service.
There are some fantastic playlists on Youtube, so I thought that I would like them downloaded, split up, and in order, so I can enjoy them in my car or at the gym without having to deal with Youtube ads, or bad qualitydue to limited mobile data. I also wanted to stream my own music library from my homelab, so I can just VPN home using WireGuard and stream my music using JellyFin from my home servers.
- Python3
- FFmpeg
- yt-dlp
- Rich
As of right now, I use WSL to use this little useful script, and copy everything over wherever. I'm working on implementing better functionality with 'typer'.
python3 ytb-dl.pyWhen prompted for a URL, just copy paste a URL of your favorite playlist from Youtube, it HAS TO HAVE CHAPTERS! If not, this script does not magically detect when songs end/start, and it will fail (I haven't tried, because that's not the use case and I'm not really interested in implementing anything like that).
Then, just name the directory you want the music files to be in, and voila! Watch the magic happen.