Hey guys i have been using Navidrome to stream my music from my server and its been amazing. I primarily use YT Music because of discoverability so I have all of my “primary” playlists (about 8 of them really, but supporting a somewhat arbitrary limit would be nice) in YouTube.
Im looking for an automated way to download the music and keep my navidrome instance updated with a couple playlists. I started working on some Python script to handle it, but its just not working super well so i would prefer to use someone elses solution haha.
Anyone have any good recommendations? I tried this one but I couldn’t actually find the music and it seems to only support one playlist at a time.
dgdft@lemmy.world 2 days ago
Yt-dlp is the gold-standard for that.
github.com/yt-dlp/yt-dlp
tux0r@feddit.org 2 days ago
If you prefer Rust, yaydl (disclosure: I wrote it) would be an alternative. (Patches welcome - right now, I much depend on Invidious to get YouTube contents.)
Lv_InSaNe_vL@lemmy.world 2 days ago
Yeah I am using yt-dlp to download the music, and I can set that on a cronjob no problem.
I am specifically asking for better downloading (I don’t want just the raw YouTube title most of the time), album art, and ID3 tagging. But that beets.io thing looks super cool! I might integrate that into my existing python scripting instead of trying to build it all out myself
dgdft@lemmy.world 2 days ago
Just to throw out an easy option: if the music is well-labeled on Youtube, you can get pretty close to that full suite with just yt-dlp by using
–embed-thumbnail
as a stand-in for album art, dump your files with an “Artist - track - album” naming structure using the–output-template
flag — then using an awk or python script as a second pss to add the artist/track/album names to the file as tags.Cyber@feddit.uk 2 days ago
Download with yt-dlp. All of it. Even into a single folder if that’s easier.
Then run it all through Picard and that’ll do everything else for you - albumart, metadata, folders, filenames, the lot.
Anything that Picard doesn’t know about, enter it into the MusicBrainz db to give back to the community.
Done.
lepinkainen@lemmy.world 2 days ago
Every single tool that downloads from YouTube is just a yt-dlp wrapper 😀