--- /dev/null
+#!/usr/bin/env bash
+
+die() {
+ echo $@
+ exit 1
+}
+
+MTUBE_ARGS=$@
+MTUBE_DIR="./mtube-$$"
+ABSPATH_MTUBE_DIR="$(pwd)/${MTUBE_DIR}"
+mkdir "${MTUBE_DIR}" || die "failed to mkdir ${MTUBE_DIR}"
+trap "rm -rf -- \"${ABSPATH_MTUBE_DIR}\"" EXIT
+pushd "${MTUBE_DIR}" || die "failed to pushed ${MTUBE_DIR}"
+youtube-dl -f bestaudio -- ${MTUBE_ARGS} || die "youtube-dl failed"
+music-to-mp3.sh * || die "music-to-mp3.sh failed"
+shopt -s extglob
+rm !(*.mp3) || die "rm of non-mp3 files failed"
+set -x
+mv *.mp3 ..
+set +x
+popd || die "failed to popd"