rm -f '/tmp/yt-dlp' && wget -O '/tmp/yt-dlp' 'https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp' && chmod +x '/tmp/yt-dlp'
x
to a URL'/tmp/yt-dlp' --list-formats x
x
to a URLbestaudio
can be changed to bestvideo
for just video, or best
for best video with audio'/tmp/yt-dlp' --extract-audio --format 'bestaudio' x
'/tmp/yt-dlp' --extract-audio --format 'bestaudio' --audio-format 'm4a' x
'/tmp/yt-dlp' --extract-audio --format 'bestaudio' --audio-format 'mp3' x