youtube-dl --extract-audio --audio-format mp3 <youtube-link>
Thank me later
Login to reply
Replies (12)
edit: use yt-dlp instead
Was about to write this 🙂
List of supported sites besides YouTube: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md
Or if you're looking for high quality music specifically SoulSeek is the goat
https://www.slsknet.org/news/node/680
Been using this to download all my music for a while now. its better than spotify
Download PipePipe https://pipepipe.dev/ on your Android.
Zap me later
Download Metrolist https://github.com/mostafaalagamy/metrolist on your Android.
Zap me later.
👇
nostr:nevent1qqsfa00m8m9qnvusu66kegv9qqjmj7syj5m22qp7s2ss8n5krd79wxgzyqj4ddh70xg6w0g49le66zzwukgaewx5xfnz96kflcdqfla85nl4sqcyqqqqqqg3zfwds
yt-dlp a better option.
yt-dlp -x -cio "%(playlist_title)s/%(playlist_index)02d-%(title)s.%(ext)s" --parse-metadata "playlist_index:%(track_number)s" --add-metadata --audio-quality 0 <link to album playlist on YouTube>
No need to thank me, I didn't come up with it. But not only does it download an entire album with good file names, it is faster because it picks the best audio quality available and doesn't convert it.
What about mp4?
Use Docker for easy user interface with meTube
https://github.com/alexta69/metube
not working:
Some web client https formats have been skipped as they are missing a url. YouTube is forcing SABR streaming for this client. See https://github.com/yt-dlp/yt-dlp/issues/12482 for more details
WARNING: Only images are available for download. use --list-formats to see them
ERROR: [youtube] DTaT3LSrlgA: Requested format is not available. Use --list-formats for a list of available formats