From: Siraaj Khandkar Date: Sat, 7 Nov 2020 20:29:32 +0000 (-0500) Subject: Re-order yt args X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=e5eff223aee1f17ae09f1f51e6c52bafc4603491;p=khome.git Re-order yt args --- diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 6e8242d..2b985e6 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -239,8 +239,8 @@ howto() { _yt() { local -r base_dir="$1" - local -r opts="$2" - local -r uri="$3" + local -r uri="$2" + local -r opts="$3" local -r id=$(youtube-dlc --get-id "$uri") local -r title=$(youtube-dlc --get-title "$uri" | sed 's/[^A-Za-z0-9._-]/_/g') @@ -254,7 +254,7 @@ _yt() { yt_audio() { local -r uri="$1" - _yt "${DIR_YOUTUBE_AUDIO}/individual" '-f 140' "$uri" + _yt "${DIR_YOUTUBE_AUDIO}/individual" "$uri" '-f 140' } yt_video() {