Rename mtube.sh to tube, use yt-dlp
authorColin P. McCabe <cmccabe@apache.org>
Wed, 1 Mar 2023 21:14:00 +0000 (13:14 -0800)
committerColin P. McCabe <cmccabe@apache.org>
Wed, 1 Mar 2023 21:14:00 +0000 (13:14 -0800)
tube [moved from mtube.sh with 87% similarity]

diff --git a/mtube.sh b/tube
similarity index 87%
rename from mtube.sh
rename to tube
index 2343649..ddc9731 100755 (executable)
--- a/mtube.sh
+++ b/tube
@@ -11,7 +11,7 @@ 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"
+yt-dlp -f bestaudio -- ${MTUBE_ARGS} || die "yt-dlp failed"
 music-to-mp3.sh * || die "music-to-mp3.sh failed"
 shopt -s extglob
 rm !(*.mp3) || die "rm of non-mp3 files failed"