#!/usr/local/bin/zsh
-. /usr/local/bin/virtualenvwrapper.sh
-workon youtube
-yt-dlp --config-location ~/.youtube-dl.conf $@
+. ~/work/youtube-venv/bin/activate
+url=${@[${#@}]}
+args=(${@[1,${#@}-1]})
+[[ ${#url} -eq 11 ]] && url=https://www.youtube.com/watch?v=$url
+yt-dlp --config-location ~/.youtube-dl.conf ${=args} $url