Download the best video quality available:
yt-dlp -f b https://www.youtube.com/$urlvideo
Get all the video quality options available for download:
yt-dlp -F https://www.youtube.com/$urlvideo
Download whole a playlist from youtube:
yt-dlp --extract-audio --audio-format mp3 -i https://www.youtube.com/$urlvideo
Update yt-dlp
:
sudo yt-dlp -U
NOTE: Previous software youtube-dl
has been discontinued, and currently yt-dlp
works correctly.