add -x to yt-dlp to directly remux to .opus and --add-metadata to write tags.
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"
Huh, didn't even notice that yt-dlp can do it automatically. Thanks.
I prefer pirating my music off YouTube.
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. 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.