blob: f66467e394048c0d11cd1b5b0c83db0ae2e33dc8 (
plain) (
blame)
1
2
3
4
5
6
7
|
function ytmp3 --description 'Download YouTube video or playlist as audio' --argument url
if test -n "$url"
cd ~/Downloads && yt-dlp -f 'ba' -x --audio-format mp3 "$url" -o '%(title)s.%(ext)s' && cd - || return
else
echo "Please give me a URL."
end
end
|