News for hackers. Stuff that matters.
Re:I'm Done with Google by Hamuko on Tuesday December 27, 2022 @03:25AM (#34146559)
>spytify automatically records mp3 files with metadata tags while you personally use Spotify

I prefer pirating my music off YouTube.

  yt-dlp -f bestaudio https://music.youtube.com/playlist?list=XXX
This nets you a bunch of *.webm files with Opus data inside them. YouTube's bestaudio is usually about 130 kbs Opus, which should be close to transparent. You can then use mkvextract to turn them into more usable *.opus files.

  mkvextract input.webm tracks 0:output.opus
The downside is that you need to tag your downloads manually after that. It's less of a problem for me since I use beets for my music library, but can be a pain if you don't have an automatic way of doing it.
Re:I'm Done with Google by MikusR on Tuesday December 27, 2022 @03:38AM (#34146672)
add -x to yt-dlp to directly remux to .opus and --add-metadata to write tags.
Re:I'm Done with Google by usui on Tuesday December 27, 2022 @03:48AM (#34146742)
Isn't the second extraction unnecessary? I just tried this command and it worked, with metadata

yt-dlp --output "%(upload_date)s ---- %(artist)s --- %(title)s.%(ext)s" --add-metadata --embed-thumbnail --audio-format opus --format bestaudio --remux-video opus "https://music.youtube.com/watch?v=0oAAlssVwEw"

Re:I'm Done with Google by Hamuko on Tuesday December 27, 2022 @04:02AM (#34146847)
Huh, didn't even notice that yt-dlp can do it automatically. Thanks.
Re:I'm Done with Google by usui on Tuesday December 27, 2022 @04:08AM (#34146886)
Happy New Year!