function download_audio() { youtube-dl \ --extract-audio --audio-format vorbis --audio-quality 0 --no-call-home \ --restrict-filenames --ignore-errors --add-metadata $@ } function rip() { if [ "$#" -ne 1 ]; then download_audio $(xclip -o) else download_audio $@ fi } function ripto() { mkdir $1 pushd $1 rip $2 popd }