From c7eb70dde800766f64dc72c4403faaac90731988 Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Sat, 20 Jun 2020 11:23:40 -0500 Subject: [PATCH] Youtube script bugfixes --- scripts/appscripts/sxmo_youtube.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/appscripts/sxmo_youtube.sh b/scripts/appscripts/sxmo_youtube.sh index 0927816..431d9bf 100755 --- a/scripts/appscripts/sxmo_youtube.sh +++ b/scripts/appscripts/sxmo_youtube.sh @@ -15,16 +15,16 @@ menu() { sed -E 's/^(URL|Duration):\s+/\t/g' | tr -d '\n' | sed 's/===/\n/g' | - gawk -F'\t' '{ print $3 " " $1 " " $2}' | + gawk -F'\t' '{ print $3 " " $1 " " $2}' )" - URL="$( + PICKED="$( printf %b "Close Menu\n$FMTRESULTS" | dmenu -c -l 10 -fn Terminus-20 )" - [ "CLOSE_MENU" = "$RESULT" ] && exit 0 + [ "CLOSE_MENU" = "$PICKED" ] && exit 0 - URL=$(echo "$RESULT" | awk -F " " '{print $NF}') + URL="$(echo "$PICKED" | awk -F " " '{print $NF}')" } video() {