...
 
Commits (3)
# vim:ft=sh
if [ -d "${HOME}/.brew" ]; then
export PATH="${HOME}/.brew/bin:${PATH}"
fi
# vim:ft=sh
if require xclip; then
exec xclip -selection clipboard
elif require pbcopy; then
exec pbcopy
fi
exit 1
......@@ -13,4 +13,4 @@ if [ -n "$2" ]; then
else
aformat="vorbis"
fi
youtube-dl --no-playlist -o '%(title)s-%(id)s.%(ext)s' -c --no-part --no-mtime -f 18 -x --audio-format "${aformat}" --audio-quality 0 -k "$1"
youtube-dl -o '%(title)s-%(id)s.%(ext)s' -c --no-part --no-mtime -f 18 -x --audio-format "${aformat}" --audio-quality 0 -k "$1"
......@@ -8,4 +8,4 @@ if [ -n "$YTDIR" ]; then
echo "Output directory: ${YTDIR}"
cd "${YTDIR}"
fi
youtube-dl -k --no-playlist -o '%(title)s-%(id)s.%(ext)s' -c --no-part --no-mtime -f best "$1"
youtube-dl -k -o '%(title)s-%(id)s.%(ext)s' -c --no-part --no-mtime -f best "$1"